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

Improve error message for CREATE EXTERNAL TABLE typos #6288

Closed
alamb opened this issue May 8, 2023 · 1 comment · Fixed by #6291
Closed

Improve error message for CREATE EXTERNAL TABLE typos #6288

alamb opened this issue May 8, 2023 · 1 comment · Fixed by #6291

Comments

@alamb
Copy link
Contributor

alamb commented May 8, 2023

If a user puts a typo like this (HEAD rather than HEADER) in their SQL

CREATE EXTERNAL TABLE t(c1 int)
STORED AS CSV
WITH HEAD ROW
LOCATION 'foo.csv';

The Parser returns the somewhat confusing error sql parser error: Missing LOCATION clause in CREATE EXTERNAL TABLE statement

It would be great if the message was something more "expected LOCATION, HEADER, ... got HEAD" that gave the user a hint of what was was wrong

See original suggestion posted by @tz70s in #6257 (comment)

@parkma99
Copy link
Contributor

parkma99 commented May 9, 2023

I'm going to work it

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 a pull request may close this issue.

2 participants