cloud-fan commented on a change in pull request #31284:
URL: https://github.com/apache/spark/pull/31284#discussion_r565864134



##########
File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetIOSuite.scala
##########
@@ -1196,6 +1196,24 @@ class ParquetIOSuite extends QueryTest with ParquetTest 
with SharedSparkSession
       }
     }
   }
+
+  test("SPARK-34167: read LongDecimals with precision < 10, VectorizedReader 
off") {
+    
readParquetFile(testFile("test-data/decimal32-written-as-64-bit.snappy.parquet"),
 false) {
+      df => assert(10 == df.collect().length)
+    }
+    
readParquetFile(testFile("test-data/decimal32-written-as-64-bit-dict.snappy.parquet"),
 false) {

Review comment:
       So there is an INT64 field in the parquet file, who is actually an int 
decimal? What's its `DecimalMetadata`? What catalyst data type Spark infers 
from it?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to