Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6410

Build error on Windows: polymorphic expression cannot be instantiated to expected type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.4.0
    • None
    • SQL

    Description

      $ bash build/sbt -Phadoop-2.3 assembly
      [...]
      [error] C:\Users\XXXXXXXX\dev\repos\spark\sql\catalyst\src\main\scala\org\apache\spark\sql\catalyst\dsl\package.scala:314: polymorphic expression cannot be instantiated to expected type;
      [error] found : [T(in method apply)]org.apache.spark.sql.catalyst.dsl.ScalaUdfBuilder[T(in method apply)]
      [error] required: org.apache.spark.sql.catalyst.dsl.package.ScalaUdfBuilder[T(in method functionToUdfBuilder)]
      [error] implicit def functionToUdfBuilder[T: TypeTag](func: Function1[_, T]): ScalaUdfBuilder[T] = ScalaUdfBuilder(func)
      [error] ^
      [...]

      $ uname -a
      CYGWIN_NT-6.3 XXXXXXXX 1.7.35(0.287/5/3) 2015-03-04 12:09 x86_64 Cygwin

      $ java -version
      java version "1.7.0_75"
      Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 24.75-b04, mixed mode)

      $ scala -version
      Scala code runner version 2.10.4 – Copyright 2002-2013, LAMP/EPFL

      $ build/zinc-0.3.5.3/bin/zinc -version
      zinc (scala incremental compiler) 0.3.5.3

      Attachments

        1. output.log
          15 kB
          Santiago M. Mola

        Activity

          People

            Unassigned Unassigned
            smolav Santiago M. Mola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: