-
Notifications
You must be signed in to change notification settings - Fork 2k
Do not unescape backslashes in datafusion-cli #14844
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
Changes from 1 commit
e3c56d4
87790e3
d304cfc
a4d7a10
8c1785b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -326,15 +326,6 @@ mod tests { | |
| )?; | ||
| assert!(matches!(result, ValidationResult::Valid(None))); | ||
|
|
||
| // should be invalid | ||
| let result = readline_direct( | ||
| Cursor::new( | ||
| r"create external table test stored as csv location 'data.csv' options ('format.delimiter' '\u{07}');" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. worth keeping this test case?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no, the check is to validate delimiter in create csv files using the unescape function. It will be verified when the external table is created later. |
||
| .as_bytes()), | ||
| &validator, | ||
| )?; | ||
| assert!(matches!(result, ValidationResult::Invalid(Some(_)))); | ||
|
|
||
| let result = readline_direct( | ||
| Cursor::new( | ||
| r"select '\', '\\', '\\\\\', 'dsdsds\\\\', '\t', '\0', '\n';".as_bytes(), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed this check since it would throw error later
