Skip to content
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

Doc changes for new nested JSON reader [skip ci] #7791

Merged
merged 2 commits into from
Feb 24, 2023

Conversation

res-life
Copy link
Collaborator

Contributes to #7518
Signed-off-by: Chong Gao [email protected]

Changes:

  • Cause error on invalid data
  • Remove the desc of does not support column pruning.

The following shows it supports column pruning now:

$ cat /tmp/people.json
{"name":"Michael"}
{"name":"Andy", "age":30}
{"name":"Justin", "age":19}
scala> import org.apache.spark.sql.types._
scala> spark.conf.set("spark.rapids.sql.format.json.read.enabled", "true")
scala> spark.conf.set("spark.rapids.sql.format.json.enabled", "true")
scala> val schema = StructType(Seq(StructField("name", StringType)))    // Only specify one column
scala> val df = spark.read.schema(schema).json("/tmp/people.json")
scala> df.show()
23/02/20 10:17:36 WARN GpuOverrides: 
!Exec <CollectLimitExec> cannot run on GPU because the Exec CollectLimitExec has been disabled, and is disabled by default because Collect Limit replacement can be slower on the GPU, if huge number of rows in a batch it could help by limiting the number of rows transferred from GPU to CPU. Set spark.rapids.sql.exec.CollectLimitExec to true if you wish to enable it
  @Partitioning <SinglePartition$> could run on GPU
  *Exec <FileSourceScanExec> will run on GPU

+-------+
|   name|
+-------+
|Michael|
|   Andy|
| Justin|
+-------+

@res-life res-life requested review from revans2 and wbo4958 February 20, 2023 10:38
@res-life
Copy link
Collaborator Author

build

@sameerz sameerz changed the title Doc changes for new nested JSON reader Doc changes for new nested JSON reader [skip ci] Feb 22, 2023
@sameerz sameerz added the documentation Improvements or additions to documentation label Feb 22, 2023
docs/compatibility.md Outdated Show resolved Hide resolved
docs/compatibility.md Outdated Show resolved Hide resolved
Signed-off-by: Chong Gao <[email protected]>
@res-life
Copy link
Collaborator Author

Updated, thanks ttnghia.

@res-life
Copy link
Collaborator Author

build

@res-life res-life merged commit 7d66bfd into NVIDIA:branch-23.04 Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants