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

unannotated array of struct with unannotated array #11476

Open
Tracked by #11379
Feng-Jiang28 opened this issue Sep 18, 2024 · 0 comments
Open
Tracked by #11379

unannotated array of struct with unannotated array #11476

Feng-Jiang28 opened this issue Sep 18, 2024 · 0 comments
Labels
? - Needs Triage Need team to review and classify bug Something isn't working

Comments

@Feng-Jiang28
Copy link
Collaborator

Feng-Jiang28 commented Sep 18, 2024

The test case is verifying the correct reading of a Parquet file with nested structures and arrays:
nested-array-struct.zip
When parsing then provided parquet here with the content:

CPU:

scala> val df=spark.read.parquet("/home/fejiang/Downloads/nested-array-struct.parquet")
df: org.apache.spark.sql.DataFrame = [primitive: int, myComplex: array<struct<id:int,repeatedMessage:array<struct<someId:int>>>>]

scala> df.show()
+---------+------------+                                                        
|primitive|   myComplex|
+---------+------------+
|        2|[{1, [{3}]}]|
|        5|[{4, [{6}]}]|
|        8|[{7, [{9}]}]|
+---------+------------+

GPU:

scala> val df=spark.read.parquet("/home/fejiang/Downloads/nested-array-struct.parquet")
df: org.apache.spark.sql.DataFrame = [primitive: int, myComplex: array<struct<id:int,repeatedMessage:array<struct<someId:int>>>>]

scala> df.show()
24/09/18 11:17:21 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

24/09/18 11:17:23 ERROR Executor: Exception in task 0.0 in stage 3.0 (TID 3)/ 1]
java.lang.ClassCastException: optional int32 someId is not a group
	at org.apache.parquet.schema.Type.asGroupType(Type.java:248)
	at com.nvidia.spark.rapids.GpuParquetFileFilterHandler.checkSchemaCompat(GpuParquetScan.scala:805)
	at com.nvidia.spark.rapids.GpuParquetFileFilterHandler.$anonfun$checkSchemaCompat$3(GpuParquetScan.scala:830)
	at com.nvidia.spark.rapids.GpuParquetFileFilterHandler.$anonfun$checkSchemaCompat$3$adapted(GpuParquetScan.scala:821)
	at scala.Option.foreach(Option.scala:407)
	at com.nvidia.spark.rapids.GpuParquetFileFilterHandler.$anonfun$checkSchemaCompat$2(GpuParquetScan.scala:821)
	at com.nvidia.spark.rapids.GpuParquetFileFilterHandler.$anonfun$checkSchemaCompat$2$adapted(GpuParquetScan.scala:820)
	at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
	at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
	at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
? - Needs Triage Need team to review and classify bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant