8000 Improve the error message when " is missing from a keyword · Issue #554 · teragrep/pth_10 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve the error message when " is missing from a keyword #554

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

Open
ronja-ui opened this issue Apr 2, 2025 · 0 comments
Open

Improve the error message when " is missing from a keyword #554

ronja-ui opened this issue Apr 2, 2025 · 0 comments

Comments

@ronja-ui
Copy link
Contributor
ronja-ui commented Apr 2, 2025

Description
Currently, there is no proper error message when user typoes keywords.

For example:

index=crud earliest="01/01/2022:00:00:00" latest="12/31/2023:23:59:59" "ipaddress=\"127.0.3.43\"

Gives:

[UNRESOLVED_COLUMN.WITH_SUGGESTION] A column or function parameter with name `"ipaddress` cannot be resolved. Did you mean one of the following? [`index`, `_time`, `partition`, `_raw`, `host`].;
'Filter (RLIKE(index#1485, (?i)^crud$) AND (((_time#1483 >= cast(from_unixtime(1640988000, yyyy-MM-dd HH:mm:ss, Some(Europe/Helsinki)) as timestamp)) AND (_time#1483 < cast(from_unixtime(1704059999, yyyy-MM-dd HH:mm:ss, Some(Europe/Helsinki)) as timestamp))) AND 'Comparison('"ipaddress, 69, \"127.0.3.43\")))
[...]

Something like "There is a possible typo on line 1" or something similar would be more beneficial.

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

No branches or pull requests

1 participant
0