-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Spark 2.x explain API with changes in 22.04 (#5062)
* Updated spark2 for changes in 22.04 * More Spark2 updates * Document EqualNullSafe example in spark 2.x explain api docs * remove TODO * Sign off Signed-off-by: Thomas Graves <tgraves@nvidia.com>
- Loading branch information
Showing
67 changed files
with
1,639 additions
and
1,011 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
2,3c2 | ||
< // spark 2.x uses FastDateFormat, use getPattern | ||
< def dateFormatInRead(options: CSVOptions): String = options.dateFormat.getPattern | ||
--- | ||
> def dateFormatInRead(options: CSVOptions): String = options.dateFormat |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
11a12,22 | ||
8,10c8,18 | ||
< // SPARK 2.x - We leave off Avro here since its a datasource v2 thing and off by default | ||
< case f => | ||
< meta.willNotWorkOnGpu(s"unsupported file format: ${f.getClass.getCanonicalName}") | ||
--- | ||
> case _ => ExternalSource.tagSupportForGpuFileSourceScanExec(meta) | ||
> } | ||
> } | ||
> | ||
> def convertFileFormat(format: FileFormat): FileFormat = { | ||
> format match { | ||
> case _: CSVFileFormat => new GpuReadCSVFileFormat | ||
> case f if GpuOrcFileFormat.isSparkOrcFormat(f) => new GpuReadOrcFileFormat | ||
> case _: ParquetFileFormat => new GpuReadParquetFileFormat | ||
> case _: JsonFileFormat => new GpuReadJsonFileFormat | ||
> case f => | ||
> throw new IllegalArgumentException(s"${f.getClass.getCanonicalName} is not supported") | ||
> } | ||
> } | ||
> case _ => ExternalSource.convertFileFormatForGpuFileSourceScanExec(format) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
< parent: Option[RapidsMeta[_, _]], | ||
--- | ||
> parent: Option[RapidsMeta[_, _, _]], | ||
6a7 | ||
> |
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
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
Oops, something went wrong.