Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Parse backtick strings (``) as identifiers instead of string literals #678

Conversation

jordanw-bq
Copy link
Contributor

Issue #, if available: #634

Description of changes:

  • parse backticked strings as identifiers, instead of string literals

Thanks @dai-chen for the fix suggestions! (#634 (comment))

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@rupal-bq rupal-bq left a comment

Choose a reason for hiding this comment

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

can you add an integration test for this fix?

@jordanw-bq
Copy link
Contributor Author

Yes, thanks for the reminder 👍

@Test
public void queryWithBackticksQuotedFieldNameInFunctionShouldPass() {
validate("SELECT SUM(`age`) FROM semantics");
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rupal-bq Added test

@chloe-zh chloe-zh merged commit ac34387 into opendistro-for-elasticsearch:develop Aug 11, 2020
@dai-chen dai-chen added bug Something isn't working SQL labels Aug 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working SQL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants