Skip to content

[VL] Array with null value will fallback #6625

Description

@Yohahaha

Backend

VL (Velox)

Bug description

val aai = Literal.create(Seq(Seq(1, 2, 3), null, Seq(4, 5)),
      ArrayType(ArrayType(IntegerType, containsNull = false), containsNull = true))

16:32:17.693 WARN org.apache.spark.sql.execution.GlutenFallbackReporter: Validation failed for plan: Project[QueryId=0], due to: Native validation failed: 
Optional[Validation failed due to exception caught at file:SubstraitToVeloxPlanValidator.cc line:1306 function:validate, thrown from file:SubstraitToVeloxExpr.cc line:400 function:literalsToArrayVector, reason:(0 vs. 0) there should be at least 1 value in list literal.].

Spark version

None

Spark configurations

No response

System information

No response

Relevant logs

"literal": {
                          "list": {
                            "values": [
                              {
                                "list": {
                                  "values": [
                                    {
                                      "i32": 1
                                    },
                                    {
                                      "i32": 2
                                    },
                                    {
                                      "i32": 3
                                    }
                                  ]
                                }
                              },
                              {
                                "null": {
                                  "list": {
                                    "type": {
                                      "i32": {
                                        "nullability": "NULLABILITY_REQUIRED"
                                      }
                                    },
                                    "nullability": "NULLABILITY_NULLABLE"
                                  }
                                }
                              },
                              {
                                "list": {
                                  "values": [
                                    {
                                      "i32": 4
                                    },
                                    {
                                      "i32": 5
                                    }
                                  ]
                                }
                              }
                            ]
                          }
                        }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions