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

ASF subversion and git services commented on ASTERIXDB-3590:
------------------------------------------------------------

Commit 775d7d6012e8021c9e8a4b9157fd722f924cae5b in asterixdb's branch 
refs/heads/master from Janhavi Tripurwar
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=775d7d6012 ]

[ASTERIXDB-3590]: Fix parse-only to consider all statements

- user model changes: yes
- storage format changes: no
- interface changes: no

details:
- Currently, parse-only parameter only collects external variables
from the last statement.
- For example, "select $p1, $p2; select $p3, $p4;" only returns ["p3", "p4"] 
instead of
["p1", "p2", "p3", "p4"].
- The fix processes all statements
- Test cases added.

Ext-ref: MB-62708
Change-Id: Ia28d5b504f7eee0837647118422fed2b6101fbed
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/19607
Reviewed-by: Ali Alsuliman <[email protected]>
Reviewed-by: Janhavi Tripurwar <[email protected]>
Tested-by: Jenkins <[email protected]>
Integration-Tests: Jenkins <[email protected]>


> Issue with `parse-only` Parameter: Only the Latest Statement is Considered
> --------------------------------------------------------------------------
>
>                 Key: ASTERIXDB-3590
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-3590
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: COMP - Compiler
>            Reporter: Janhavi Tripurwar
>            Assignee: Janhavi Tripurwar
>            Priority: Major
>              Labels: triaged
>
> When the *{{parse-only}}* parameter is set to true, only the last statement 
> is passed when collecting the external variables.. For example, if the input 
> is:
> {code:java}
> "statement": "select $p1, $p2; select $p3, $p4;"{code}
> Currently, only the parameters for the second statement ({{{}select $p3, 
> $p4;{}}}) are returned:
> {code:java}
> "results": {
>     "statement-parameters": ["p3", "p4"]
> }{code}
> However, all statements should be considered, and the expected result is:
> {code:java}
> "results": {
>     "statement-parameters": ["p1", "p2", "p3", "p4"]
> }{code}



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

Reply via email to