Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]ppl parse issue for backtick wrapped fields #130

Closed
YANG-DB opened this issue Nov 4, 2023 · 0 comments
Closed

[BUG]ppl parse issue for backtick wrapped fields #130

YANG-DB opened this issue Nov 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@YANG-DB
Copy link
Member

YANG-DB commented Nov 4, 2023

What is the bug?
the next query

source = mys3.default.http_logs_plain | 
where status >= 400 | sort - `@timestamp` | head 5

fails with the next error

"error": "Fail to analyze query. Cause: Column '```@timestamp```' does not exist. Did you mean one of the following? [spark_catalog.default.http_logs_plain.day, spark_catalog.default.http_logs_plain.month, spark_catalog.default.http_logs_plain.size, spark_catalog.default.http_logs_plain.year, spark_catalog.default.http_logs_plain.status, spark_catalog.default.http_logs_plain.@timestamp, spark_catalog.default.http_logs_plain.request, spark_catalog.default.http_logs_plain.clientip];\n'Project [*]\n+- 'GlobalLimit 5\n   +- 'LocalLimit 5\n      +- 'Sort ['`@timestamp` DESC NULLS LAST], true\n         +- Filter (status#75 >= 400)\n            +- SubqueryAlias spark_catalog.default.http_logs_plain\n               +- Relation default.http_logs_plain[@timestamp#72,clientip#73,request#74,status#75,size#76,year#77,month#78,day#79] json\n"

What is the expected behavior?
Parsing of single quote should work correctly

Do you have any screenshots?
Screenshot 2023-11-04 at 11 01 32 AM

Do you have any additional context?

@YANG-DB YANG-DB added bug Something isn't working untriaged labels Nov 4, 2023
@seankao-az seankao-az changed the title [BUG]ppl parse issue for single quote wrapped fields [BUG]ppl parse issue for backtick wrapped fields Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants