-
Notifications
You must be signed in to change notification settings - Fork 29.3k
[SPARK-32685][SQL] When specify serde, default filed.delim is '\t' #30942
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 3 commits
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 |
|---|---|---|
|
|
@@ -505,7 +505,12 @@ class SparkSqlAstBuilder extends AstBuilder { | |
| } else { | ||
| None | ||
| } | ||
| (Seq.empty, Option(name), props.toSeq, recordHandler) | ||
| val finalProps = if (!props.contains("field.delim")) { | ||
| props.toSeq ++ Seq("field.delim" -> "\t") | ||
|
Contributor
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. what's the behavior now? which delimiter do we use by default before this PR?
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 default we use '\u0001' |
||
| } else { | ||
| props.toSeq | ||
| } | ||
| (Seq.empty, Option(name), finalProps, recordHandler) | ||
|
|
||
| case null => | ||
| // Use default (serde) format. | ||
|
|
||
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.
is this case sensitive?
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.
Yes, case sensitive
