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

Aleksandar Tomic updated SPARK-48338:
-------------------------------------
    Description: 
Design doc for this feature is in attachment.

High level example of Sql Script:

```
BEGIN
  DECLARE c INT = 10;
  WHILE c > 0 DO
    INSERT INTO tscript VALUES (c);
    SET c = c - 1;
  END WHILE;
END
```

High level motivation behind this feature:
SQL Scripting gives customers the ability to develop complex ETL and analysis 
entirely in SQL. Until now, customers have had to write verbose SQL statements 
or combine SQL + Python to efficiently write business logic. Coming from 
another system, customers have to choose whether or not they want to migrate to 
pyspark. Some customers end up not using Spark because of this gap. SQL 
Scripting is a key milestone towards enabling SQL practitioners to write 
sophisticated queries, without the need to use pyspark. Further, SQL Scripting 
is a necessary step towards support for SQL Stored Procedures, and along with 
SQL Variables (released) and Temp Tables (in progress), will allow for more 
seamless data warehouse migrations.


  was:Design doc for this feature is in attachment.


> Sql Scripting support for Spark SQL
> -----------------------------------
>
>                 Key: SPARK-48338
>                 URL: https://issues.apache.org/jira/browse/SPARK-48338
>             Project: Spark
>          Issue Type: Epic
>          Components: Spark Core
>    Affects Versions: 4.0.0
>            Reporter: Aleksandar Tomic
>            Priority: Major
>         Attachments: Sql Scripting - OSS.odt
>
>
> Design doc for this feature is in attachment.
> High level example of Sql Script:
> ```
> BEGIN
>   DECLARE c INT = 10;
>   WHILE c > 0 DO
>     INSERT INTO tscript VALUES (c);
>     SET c = c - 1;
>   END WHILE;
> END
> ```
> High level motivation behind this feature:
> SQL Scripting gives customers the ability to develop complex ETL and analysis 
> entirely in SQL. Until now, customers have had to write verbose SQL 
> statements or combine SQL + Python to efficiently write business logic. 
> Coming from another system, customers have to choose whether or not they want 
> to migrate to pyspark. Some customers end up not using Spark because of this 
> gap. SQL Scripting is a key milestone towards enabling SQL practitioners to 
> write sophisticated queries, without the need to use pyspark. Further, SQL 
> Scripting is a necessary step towards support for SQL Stored Procedures, and 
> along with SQL Variables (released) and Temp Tables (in progress), will allow 
> for more seamless data warehouse migrations.



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

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

Reply via email to