Skip to content

[CALCITE-6502] Parser loses position information for Expression3#3886

Merged
mihaibudiu merged 1 commit intoapache:mainfrom
mihaibudiu:issue6502
Jul 30, 2024
Merged

[CALCITE-6502] Parser loses position information for Expression3#3886
mihaibudiu merged 1 commit intoapache:mainfrom
mihaibudiu:issue6502

Conversation

@mihaibudiu
Copy link
Copy Markdown
Contributor

There was another bug in the parsing of array ITEM operators, which was uncovered by this fix.

Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
if (list1.size() == 1) {
// interpret as single value or query
return list1.get(0);
return list1.get(0).clone(list1.getParserPosition());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is clone necessary here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is actually the line that fixes the JIRA bug

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand what you mean

@mihaibudiu mihaibudiu merged commit ad66246 into apache:main Jul 30, 2024
@mihaibudiu mihaibudiu deleted the issue6502 branch July 30, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants