Skip to content

Support non-determenistic expression in explode #5238

Description

@comphead

Comet need to support deterministic expressions in explode to match Spark

java.lang.RuntimeException: Error executing SQL 'SELECT id, explode(array(rand(0))) FROM test_explode_int WHERE id = 1' nondeterministic expressions are only allowed in Project, Filter, Aggregate or Window, found:
  explode(array(rand(0))),col
  in operator Generate explode(array(rand(0))), false, [col#93426].; line 1 pos 0;

However the test passed in pure Spark

The same needs to be tested for explode/posexplode for regular and outer variants

Originally posted by @comphead in #5192 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:mediumFunctional bugs, performance regressions, broken features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions