-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-10310][SQL]Using \t as the field delimeter and \n as the line delimeter #8476
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 all commits
cafe301
4939ed8
517f31f
23aaa04
c6e9134
9b3a8de
8fb75a6
2d1e604
ae0b68e
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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import sys | ||
|
|
||
| for line in sys.stdin: | ||
| arr = line.strip().split("\t") | ||
| for i in range(len(arr)): | ||
| arr[i] = arr[i] + "#" | ||
| print("\t".join(arr)) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -429,7 +429,8 @@ class HiveQuerySuite extends HiveComparisonTest with BeforeAndAfter { | |
| |'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' FROM src; | ||
| """.stripMargin.replaceAll(System.lineSeparator(), " ")) | ||
|
|
||
| test("transform with SerDe2") { | ||
| // TODO: Only support serde which compatible with TextRecordReader at the moment. | ||
| ignore("transform with SerDe2") { | ||
|
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. Why this test case should be ignored? The involved SQL query doesn't contain a
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. Within |
||
|
|
||
| sql("CREATE TABLE small_src(key INT, value STRING)") | ||
| sql("INSERT OVERWRITE TABLE small_src SELECT key, value FROM src LIMIT 10") | ||
|
|
||
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.
Shouldn't we specify line delimiter here?
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.
line delimiter is control by RecorderWriter, see TextRecordWriter as an example: