org.codehaus.commons.compiler.CompileException: File 'generated.java', Line 472, Column 36: Expression "inputadapter_value" is not an rvalue

GitHub | thunterdb | 7 days ago
  1. 0

    Question about using SQL functions in lingual

    Google Groups | 2 years ago | Tamás Fülöp
    cascading.operation.OperationException: could not compile script: {* * return new cascading.tuple.Tuple(* * new Object[] {* * ViewDate,* * net.hydromatic.optiq.runtime.SqlFunctions.currentTimestamp(root)});* *}*
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.codehaus.commons.compiler.CompileException

    File 'generated.java', Line 472, Column 36: Expression "inputadapter_value" is not an rvalue

    at org.codehaus.janino.UnitCompiler.compileError()
  2. Janino
    SimpleCompiler.cook
    1. org.codehaus.janino.UnitCompiler.compileError(UnitCompiler.java:11004)
    2. org.codehaus.janino.UnitCompiler.toRvalueOrCompileException(UnitCompiler.java:6639)
    3. org.codehaus.janino.UnitCompiler.getConstantValue2(UnitCompiler.java:5001)
    4. org.codehaus.janino.UnitCompiler.access$10500(UnitCompiler.java:206)
    5. org.codehaus.janino.UnitCompiler$13.visitAmbiguousName(UnitCompiler.java:4984)
    6. org.codehaus.janino.Java$AmbiguousName.accept(Java.java:3633)
    7. org.codehaus.janino.Java$Lvalue.accept(Java.java:3563)
    8. org.codehaus.janino.UnitCompiler.getConstantValue(UnitCompiler.java:4956)
    9. org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java:4925)
    10. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:3189)
    11. org.codehaus.janino.UnitCompiler.access$5100(UnitCompiler.java:206)
    12. org.codehaus.janino.UnitCompiler$9.visitAssignment(UnitCompiler.java:3143)
    13. org.codehaus.janino.UnitCompiler$9.visitAssignment(UnitCompiler.java:3139)
    14. org.codehaus.janino.Java$Assignment.accept(Java.java:3847)
    15. org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:3139)
    16. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:2112)
    17. org.codehaus.janino.UnitCompiler.access$1700(UnitCompiler.java:206)
    18. org.codehaus.janino.UnitCompiler$6.visitExpressionStatement(UnitCompiler.java:1377)
    19. org.codehaus.janino.UnitCompiler$6.visitExpressionStatement(UnitCompiler.java:1370)
    20. org.codehaus.janino.Java$ExpressionStatement.accept(Java.java:2558)
    21. org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:1370)
    22. org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:1450)
    23. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:1436)
    24. org.codehaus.janino.UnitCompiler.access$1600(UnitCompiler.java:206)
    25. org.codehaus.janino.UnitCompiler$6.visitBlock(UnitCompiler.java:1376)
    26. org.codehaus.janino.UnitCompiler$6.visitBlock(UnitCompiler.java:1370)
    27. org.codehaus.janino.Java$Block.accept(Java.java:2471)
    28. org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:1370)
    29. org.codehaus.janino.UnitCompiler.compileStatements(UnitCompiler.java:1450)
    30. org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:2811)
    31. org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:1262)
    32. org.codehaus.janino.UnitCompiler.compileDeclaredMethods(UnitCompiler.java:1234)
    33. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:538)
    34. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:890)
    35. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:894)
    36. org.codehaus.janino.UnitCompiler.access$600(UnitCompiler.java:206)
    37. org.codehaus.janino.UnitCompiler$2.visitMemberClassDeclaration(UnitCompiler.java:377)
    38. org.codehaus.janino.UnitCompiler$2.visitMemberClassDeclaration(UnitCompiler.java:369)
    39. org.codehaus.janino.Java$MemberClassDeclaration.accept(Java.java:1128)
    40. org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:369)
    41. org.codehaus.janino.UnitCompiler.compileDeclaredMemberTypes(UnitCompiler.java:1209)
    42. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:564)
    43. org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java:420)
    44. org.codehaus.janino.UnitCompiler.access$400(UnitCompiler.java:206)
    45. org.codehaus.janino.UnitCompiler$2.visitPackageMemberClassDeclaration(UnitCompiler.java:374)
    46. org.codehaus.janino.UnitCompiler$2.visitPackageMemberClassDeclaration(UnitCompiler.java:369)
    47. org.codehaus.janino.Java$AbstractPackageMemberClassDeclaration.accept(Java.java:1309)
    48. org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java:369)
    49. org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:345)
    50. org.codehaus.janino.SimpleCompiler.compileToClassLoader(SimpleCompiler.java:396)
    51. org.codehaus.janino.ClassBodyEvaluator.compileToClass(ClassBodyEvaluator.java:311)
    52. org.codehaus.janino.ClassBodyEvaluator.cook(ClassBodyEvaluator.java:229)
    53. org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:196)
    53 frames
  3. Commons Compiler
    Cookable.cook
    1. org.codehaus.commons.compiler.Cookable.cook(Cookable.java:91)
    1 frame
  4. Spark Project Catalyst
    CodeGenerator$$anon$1.load
    1. org.apache.spark.sql.catalyst.expressions.codegen.CodeGenerator$.org$apache$spark$sql$catalyst$expressions$codegen$CodeGenerator$$doCompile(CodeGenerator.scala:935)
    2. org.apache.spark.sql.catalyst.expressions.codegen.CodeGenerator$$anon$1.load(CodeGenerator.scala:998)
    3. org.apache.spark.sql.catalyst.expressions.codegen.CodeGenerator$$anon$1.load(CodeGenerator.scala:995)
    3 frames
  5. org.spark_project.guava
    LocalCache$LocalLoadingCache.get
    1. org.spark_project.guava.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3599)
    2. org.spark_project.guava.cache.LocalCache$Segment.loadSync(LocalCache.java:2379)
    3. org.spark_project.guava.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2342)
    4. org.spark_project.guava.cache.LocalCache$Segment.get(LocalCache.java:2257)
    5. org.spark_project.guava.cache.LocalCache.get(LocalCache.java:4000)
    6. org.spark_project.guava.cache.LocalCache.getOrLoad(LocalCache.java:4004)
    7. org.spark_project.guava.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4874)
    7 frames
  6. Spark Project Catalyst
    CodeGenerator$.compile
    1. org.apache.spark.sql.catalyst.expressions.codegen.CodeGenerator$.compile(CodeGenerator.scala:890)
    1 frame
  7. Spark Project SQL
    SparkPlan$$anonfun$executeQuery$1.apply
    1. org.apache.spark.sql.execution.WholeStageCodegenExec.doExecute(WholeStageCodegenExec.scala:357)
    2. org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:114)
    3. org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:114)
    4. org.apache.spark.sql.execution.SparkPlan$$anonfun$executeQuery$1.apply(SparkPlan.scala:135)
    4 frames
  8. Spark
    RDDOperationScope$.withScope
    1. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
    1 frame
  9. Spark Project SQL
    SparkPlan.execute
    1. org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:132)
    2. org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:113)
    2 frames
  10. org.apache.spark
    ShuffleExchange$$anonfun$doExecute$1.apply
    1. org.apache.spark.sql.execution.exchange.ShuffleExchange.prepareShuffleDependency(ShuffleExchange.scala:85)
    2. org.apache.spark.sql.execution.exchange.ShuffleExchange$$anonfun$doExecute$1.apply(ShuffleExchange.scala:121)
    3. org.apache.spark.sql.execution.exchange.ShuffleExchange$$anonfun$doExecute$1.apply(ShuffleExchange.scala:112)
    3 frames
  11. Spark Project Catalyst
    package$.attachTree
    1. org.apache.spark.sql.catalyst.errors.package$.attachTree(package.scala:52)
    1 frame
  12. org.apache.spark
    ShuffleExchange.doExecute
    1. org.apache.spark.sql.execution.exchange.ShuffleExchange.doExecute(ShuffleExchange.scala:112)
    1 frame
  13. Spark Project SQL
    SparkPlan$$anonfun$executeQuery$1.apply
    1. org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:114)
    2. org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:114)
    3. org.apache.spark.sql.execution.SparkPlan$$anonfun$executeQuery$1.apply(SparkPlan.scala:135)
    3 frames
  14. Spark
    RDDOperationScope$.withScope
    1. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
    1 frame
  15. Spark Project SQL
    InputAdapter.inputRDDs
    1. org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:132)
    2. org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:113)
    3. org.apache.spark.sql.execution.InputAdapter.inputRDDs(WholeStageCodegenExec.scala:235)
    3 frames
  16. org.apache.spark
    HashAggregateExec.inputRDDs
    1. org.apache.spark.sql.execution.aggregate.HashAggregateExec.inputRDDs(HashAggregateExec.scala:141)
    1 frame
  17. Spark Project SQL
    SparkPlan$$anonfun$executeQuery$1.apply
    1. org.apache.spark.sql.execution.WholeStageCodegenExec.doExecute(WholeStageCodegenExec.scala:368)
    2. org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:114)
    3. org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:114)
    4. org.apache.spark.sql.execution.SparkPlan$$anonfun$executeQuery$1.apply(SparkPlan.scala:135)
    4 frames
  18. Spark
    RDDOperationScope$.withScope
    1. org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
    1 frame
  19. Spark Project SQL
    Dataset.collect
    1. org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:132)
    2. org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:113)
    3. org.apache.spark.sql.execution.SparkPlan.getByteArrayRdd(SparkPlan.scala:225)
    4. org.apache.spark.sql.execution.SparkPlan.executeCollect(SparkPlan.scala:272)
    5. org.apache.spark.sql.Dataset$$anonfun$org$apache$spark$sql$Dataset$$execute$1$1.apply(Dataset.scala:2371)
    6. org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:57)
    7. org.apache.spark.sql.Dataset.withNewExecutionId(Dataset.scala:2765)
    8. org.apache.spark.sql.Dataset.org$apache$spark$sql$Dataset$$execute$1(Dataset.scala:2370)
    9. org.apache.spark.sql.Dataset$$anonfun$org$apache$spark$sql$Dataset$$collect$1.apply(Dataset.scala:2375)
    10. org.apache.spark.sql.Dataset$$anonfun$org$apache$spark$sql$Dataset$$collect$1.apply(Dataset.scala:2375)
    11. org.apache.spark.sql.Dataset.withCallback(Dataset.scala:2778)
    12. org.apache.spark.sql.Dataset.org$apache$spark$sql$Dataset$$collect(Dataset.scala:2375)
    13. org.apache.spark.sql.Dataset.collect(Dataset.scala:2351)
    13 frames
  20. org.graphframes
    PatternMatchSuite$$anonfun$6.apply
    1. org.graphframes.PatternMatchSuite$$anonfun$6.apply$mcV$sp(PatternMatchSuite.scala:103)
    2. org.graphframes.PatternMatchSuite$$anonfun$6.apply(PatternMatchSuite.scala:99)
    3. org.graphframes.PatternMatchSuite$$anonfun$6.apply(PatternMatchSuite.scala:99)
    3 frames
  21. scalatest
    FunSuiteLike$$anon$1.apply
    1. org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
    2. org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
    3. org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
    4. org.scalatest.Transformer.apply(Transformer.scala:22)
    5. org.scalatest.Transformer.apply(Transformer.scala:20)
    6. org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166)
    6 frames
  22. org.graphframes
    SparkFunSuite.withFixture
    1. org.graphframes.SparkFunSuite.withFixture(SparkFunSuite.scala:40)
    1 frame
  23. scalatest
    SuperEngine$$anonfun$traverseSubNodes$1$1.apply
    1. org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:163)
    2. org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
    3. org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
    4. org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
    5. org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:175)
    6. org.scalatest.FunSuite.runTest(FunSuite.scala:1555)
    7. org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
    8. org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
    9. org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413)
    10. org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401)
    10 frames
  24. Scala
    List.foreach
    1. scala.collection.immutable.List.foreach(List.scala:381)
    1 frame
  25. scalatest
    FunSuiteLike$class.run
    1. org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
    2. org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396)
    3. org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483)
    4. org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:208)
    5. org.scalatest.FunSuite.runTests(FunSuite.scala:1555)
    6. org.scalatest.Suite$class.run(Suite.scala:1424)
    7. org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1555)
    8. org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212)
    9. org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212)
    10. org.scalatest.SuperEngine.runImpl(Engine.scala:545)
    11. org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:212)
    11 frames
  26. org.graphframes
    PatternMatchSuite.org$scalatest$BeforeAndAfterAll$$super$run
    1. org.graphframes.PatternMatchSuite.org$scalatest$BeforeAndAfterAll$$super$run(PatternMatchSuite.scala:25)
    1 frame
  27. scalatest
    BeforeAndAfterAll$class.run
    1. org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:257)
    2. org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:256)
    2 frames
  28. org.graphframes
    PatternMatchSuite.run
    1. org.graphframes.PatternMatchSuite.run(PatternMatchSuite.scala:25)
    1 frame
  29. scalatest
    Framework$ScalaTestTask.execute
    1. org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:357)
    2. org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:502)
    2 frames
  30. SBT
    ForkMain$Run$2.call
    1. sbt.ForkMain$Run$2.call(ForkMain.java:294)
    2. sbt.ForkMain$Run$2.call(ForkMain.java:284)
    2 frames
  31. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames