[ 
https://issues.apache.org/jira/browse/CASSANDRA-20224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17914244#comment-17914244
 ] 

Patrick McFadin commented on CASSANDRA-20224:
---------------------------------------------

Patched and created PR: [https://github.com/apache/cassandra/pull/3810]

 

This patch uses the same syntax as the non-LET statement SELECT. It should be 
pretty straightforward. Syntax was tested on CEP-15 branch and worked as 
expected. 

> Add alias (AS) support to Accord LET SELECT statement
> -----------------------------------------------------
>
>                 Key: CASSANDRA-20224
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20224
>             Project: Apache Cassandra
>          Issue Type: Improvement
>          Components: Accord
>            Reporter: Patrick McFadin
>            Assignee: Patrick McFadin
>            Priority: Normal
>
> When creating tuples inside an Accord transaction block, the LET statement 
> currently does not allow for aliases( AS )  in the column select. Example not 
> allowed:
> LET tuple_data = (SELECT col1 AS firstName, col2 AS lastName FROM ks.t);
> It's a simple patch in the Parser.g to fix that. 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to