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

Janhavi Tripurwar updated ASTERIXDB-3590:
-----------------------------------------
    Description: 
When the *{{parse-only}}* parameter is set to true, only the last statement is 
considered during parsing. 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}

  was:
When the *{{parse-only}}* parameter is set to true, only the latest statement 
is considered during parsing. 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}


> 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
>            Reporter: Janhavi Tripurwar
>            Priority: Major
>
> When the *{{parse-only}}* parameter is set to true, only the last statement 
> is considered during parsing. 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