Skip to content

feat: Support ARRAY literal #1977

Open
@comphead

Description

@comphead

Such query falls back to Spark although it can be executed natively

  test("array i32 literal") {
    withSQLConf(
      CometConf.COMET_EXEC_ENABLED.key -> "true",
      SQLConf.USE_V1_SOURCE_LIST.key -> "parquet",
      CometConf.COMET_ENABLED.key -> "true",
      CometConf.COMET_EXPLAIN_FALLBACK_ENABLED.key -> "false",
      CometConf.COMET_NATIVE_SCAN_IMPL.key -> "native_datafusion") {

      testSingleLineQuery(
        """
          | select 1
          |""".stripMargin,
        "select array(1, 2, 3) from tbl")
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions