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

Wei.Zhou updated CALCITE-6970:
------------------------------
    Description: 
I get an error when i parse a sql  that the sql update multiple fields with a 
source select  like bellow:
UPDATE employees
 SET (salary, bonus) =
      ( SELECT salary * 1.1 as salary, bonus + 1000 as bonus
        FROM employee_changes
       WHERE employees.id = employee_changes.id )
WHERE department = 'Sales'

!image-2025-04-18-18-36-01-732.png|width=508,height=159!
This sql is supported by oracle .

  was:
I get an error when i parse a sql  that the sql update multiple fields with a 
source select  like bellow:
UPDATE employees
 SET (salary, bonus) =
      ( SELECT salary * 1.1 as salary, bonus + 1000 as bonus
        FROM employee_changes
       WHERE employees.id = employee_changes.id )
WHERE department = 'Sales'
This sql is supported by oracle .


> Can't parse update sql that the sql update multiple fields with a source  
> select 
> ---------------------------------------------------------------------------------
>
>                 Key: CALCITE-6970
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6970
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.39.0
>            Reporter: Wei.Zhou
>            Priority: Major
>         Attachments: image-2025-04-18-18-36-01-732.png
>
>
> I get an error when i parse a sql  that the sql update multiple fields with a 
> source select  like bellow:
> UPDATE employees
>  SET (salary, bonus) =
>       ( SELECT salary * 1.1 as salary, bonus + 1000 as bonus
>         FROM employee_changes
>        WHERE employees.id = employee_changes.id )
> WHERE department = 'Sales'
> !image-2025-04-18-18-36-01-732.png|width=508,height=159!
> This sql is supported by oracle .



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

Reply via email to