David Milicevic created SPARK-48530:
---------------------------------------

             Summary: [M0] Support for local variables
                 Key: SPARK-48530
                 URL: https://issues.apache.org/jira/browse/SPARK-48530
             Project: Spark
          Issue Type: Sub-task
          Components: Spark Core
    Affects Versions: 4.0.0
            Reporter: David Milicevic


At the moment, variables in SQL scripts are creating session variables. We 
don't want this, we want variables to be considered as local (within the 
block/compound).

 

To achieve this, we probably need to wait for labels support. Once we have it, 
we can prepend variable names with labels to make distinction between variables 
with the same name and only then reuse session variables mechanism to save 
values with such composed names.

If the block/compound doesn't have label, we should generate it automatically 
(GUID or something similar).



--
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