[
https://issues.apache.org/jira/browse/ASTERIXDB-3590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Janhavi Tripurwar resolved ASTERIXDB-3590.
------------------------------------------
Resolution: Fixed
> 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)