-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-11793][SQL] Dataset should set the resolved encoders internally for maps. #9784
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
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 |
|---|---|---|
|
|
@@ -73,6 +73,17 @@ class DatasetSuite extends QueryTest with SharedSQLContext { | |
| ("a", 2), ("b", 3), ("c", 4)) | ||
| } | ||
|
|
||
| ignore("Dataset should set the resolved encoders internally for maps") { | ||
|
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 not write a test just for this bug? for example:
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. because it could get optimized away when we introduce local execution mode and better pipelining.
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. I will add some comment on why. |
||
| // TODO: Enable this once we fix SPARK-11793. | ||
| val ds: Dataset[(ClassData, Long)] = Seq(ClassData("one", 1), ClassData("two", 2)).toDS() | ||
| .map(c => ClassData(c.a, c.b + 1)) | ||
| .groupBy(p => p).count() | ||
|
|
||
| checkAnswer( | ||
| ds, | ||
| (ClassData("one", 1), 1L), (ClassData("two", 2), 1L)) | ||
| } | ||
|
|
||
| test("select") { | ||
| val ds = Seq(("a", 1) , ("b", 2), ("c", 3)).toDS() | ||
| checkAnswer( | ||
|
|
||
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.
Actually we don't need this assert,
encoderForalready did this.