forked from databricks/spark-csv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inconsistent result for DROPMALFORMED with pruned scan and unnecessar…
…ily casting all values when no fields are required https://github.com/databricks/spark-csv/issues/218 https://github.com/databricks/spark-csv/issues/219 In this PR, I made the pruned scan try to parse all the values in columns when DROPMALFORMED is enabled and return only required fields. In addition, I changed the condition for table scan. If required columns are empty, then it just produces empty rows. Author: hyukjinkwon <[email protected]> Closes databricks#220 from HyukjinKwon/ISSUE-218-non-all-cast.
- Loading branch information
1 parent
fb1976d
commit 4a5ee81
Showing
2 changed files
with
40 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters