Max Gekk created SPARK-49542:
--------------------------------

             Summary: Cannot generate code for expression: years
                 Key: SPARK-49542
                 URL: https://issues.apache.org/jira/browse/SPARK-49542
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 4.0.0
            Reporter: Max Gekk


The example below portraits the issue:

{code:scala}
scala> spark.range(10).select(partitioning.years($"id")).show()
org.apache.spark.SparkException: [INTERNAL_ERROR] Cannot generate code for 
expression: years(input[0, bigint, false]) SQLSTATE: XX000
  at org.apache.spark.SparkException$.internalError(SparkException.scala:92)
  at org.apache.spark.SparkException$.internalError(SparkException.scala:96)
{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to