You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2023/02/27 08:43:00 UTC

[jira] [Resolved] (SPARK-41290) Support GENERATED ALWAYS AS syntax in create/replace table to create a generated column

     [ https://issues.apache.org/jira/browse/SPARK-41290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wenchen Fan resolved SPARK-41290.
---------------------------------
    Fix Version/s: 3.4.0
       Resolution: Fixed

Issue resolved by pull request 38823
[https://github.com/apache/spark/pull/38823]

> Support GENERATED ALWAYS AS syntax in create/replace table to create a generated column
> ---------------------------------------------------------------------------------------
>
>                 Key: SPARK-41290
>                 URL: https://issues.apache.org/jira/browse/SPARK-41290
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Allison Portis
>            Priority: Major
>             Fix For: 3.4.0
>
>
> Support GENERATED ALWAYS AS syntax for defining generated columns in create table and replace table.
> For example,
> {code:java}
> CREATE TABLE default.example (
>     time TIMESTAMP,
>     date DATE GENERATED ALWAYS AS (CAST(time AS DATE))
> )
> {code}
>  
> This syntax is SQL standard and will enable defining generated columns in Spark SQL for data sources that support it.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org