Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.34.0
Description
The following query is valid in Apache Spark.
spark-shell scala> spark.sql("""select array(1, 2, 3)""") res1: org.apache.spark.sql.DataFrame = [array(1, 2, 3): array<int>]
However, it would fail to parse in Apache Calcite
AtomicRowExpression should not have ArrayConstructor for Apache Spark. Arrays are constructed by calling the array function (https://spark.apache.org/docs/latest/api/sql/index.html#array).
array() array(1) array(1, 2, 3)
Attachments
Issue Links
- relates to
-
CALCITE-5628 Cannot parse map function for Spark Dialect
- Resolved
-
CALCITE-5918 Add MAP function (enabled in Spark library)
- Closed
- links to