caicancai commented on PR #3909:
URL: https://github.com/apache/calcite/pull/3909#issuecomment-2276200018
```
cala> val df = spark.sql("select map_values(map(cast(null as int),0, 'foo',
1))");
df: org.apache.spark.sql.DataFrame = [map_values(map(CAST(NULL AS INT), 0,
foo, 1)): array<int>]
scala> df.show()
org.apache.spark.SparkRuntimeException: [NULL_MAP_KEY] Cannot use null as
map key.
at
org.apache.spark.sql.errors.QueryExecutionErrors$.nullAsMapKeyNotAllowedError(QueryExecutionErrors.scala:445)
```
From the spark log, the error is reported at runtime, not parameter
verification.
Similar to the previous 6400
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]