Description
Support GENERATED ALWAYS AS syntax for defining generated columns in create table and replace table.
For example,
CREATE TABLE default.example (
time TIMESTAMP,
date DATE GENERATED ALWAYS AS (CAST(time AS DATE))
)
This syntax is SQL standard and will enable defining generated columns in Spark SQL for data sources that support it.
Attachments
Issue Links
- is related to
-
SPARK-44313 Generated column expression validation fails if there is a char/varchar column anywhere in the schema
-
- Resolved
-
- links to