Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-45314 Drop Scala 2.12 and make Scala 2.13 by default
  3. SPARK-45700

Fix `The outer reference in this type test cannot be checked at run time`

    XMLWordPrintableJSON

Details

    Description

      [error] /Users/yangjie01/SourceCode/git/spark-mine-sbt/sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala:324:12: The outer reference in this type test cannot be checked at run time.
      [error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=unchecked, site=org.apache.spark.sql.SQLQueryTestSuite.createScalaTestCase
      [error]       case udfTestCase: UDFTest
      [error]            ^
      [error] /Users/yangjie01/SourceCode/git/spark-mine-sbt/sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala:506:12: The outer reference in this type test cannot be checked at run time.
      [error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=unchecked, site=org.apache.spark.sql.SQLQueryTestSuite.runQueries
      [error]       case udfTestCase: UDFTest =>
      [error]            ^
      [error] /Users/yangjie01/SourceCode/git/spark-mine-sbt/sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala:508:12: The outer reference in this type test cannot be checked at run time.
      [error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=unchecked, site=org.apache.spark.sql.SQLQueryTestSuite.runQueries
      [error]       case udtfTestCase: UDTFSetTest =>
      [error]            ^
      [error] /Users/yangjie01/SourceCode/git/spark-mine-sbt/sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala:514:13: The outer reference in this type test cannot be checked at run time.
      [error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=unchecked, site=org.apache.spark.sql.SQLQueryTestSuite.runQueries
      [error]       case _: PgSQLTest =>
      [error]             ^
      [error] /Users/yangjie01/SourceCode/git/spark-mine-sbt/sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala:522:13: The outer reference in this type test cannot be checked at run time.
      [error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=unchecked, site=org.apache.spark.sql.SQLQueryTestSuite.runQueries
      [error]       case _: AnsiTest =>
      [error]             ^
      [error] /Users/yangjie01/SourceCode/git/spark-mine-sbt/sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala:524:13: The outer reference in this type test cannot be checked at run time.
      [error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=unchecked, site=org.apache.spark.sql.SQLQueryTestSuite.runQueries
      [error]       case _: TimestampNTZTest =>
      [error]             ^
      [error] /Users/yangjie01/SourceCode/git/spark-mine-sbt/sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala:584:12: The outer reference in this type test cannot be checked at run time.
      [error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=unchecked, site=org.apache.spark.sql.SQLQueryTestSuite.runQueries.clue
      [error]       case udfTestCase: UDFTest
      [error]            ^
      [error] /Users/yangjie01/SourceCode/git/spark-mine-sbt/sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala:596:12: The outer reference in this type test cannot be checked at run time.
      [error] Applicable -Wconf / @nowarn filters for this fatal warning: msg=<part of the message>, cat=unchecked, site=org.apache.spark.sql.SQLQueryTestSuite.runQueries.clue
      [error]       case udtfTestCase: UDTFSetTest
      [error]            ^ 

      Attachments

        Issue Links

          Activity

            People

              LuciferYang Yang Jie
              LuciferYang Yang Jie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: