Skip to content

Add support for size expression #1926

@andygrove

Description

@andygrove

What is the problem the feature request solves?

Add support for Spark SQL size expression:

https://spark.apache.org/docs/latest/api/sql/index.html#size

From the documentation:

size(expr) - Returns the size of an array or a map. This function returns -1 for null input only if spark.sql.ansi.enabled is false and spark.sql.legacy.sizeOfNull is true. Otherwise, it returns null for null input. With the default settings, the function returns null for null input.

Describe the potential solution

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestexpressionSpark expression related

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions