pan3793 commented on code in PR #43620:
URL: https://github.com/apache/spark/pull/43620#discussion_r1380368351


##########
sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala:
##########
@@ -2766,7 +2767,8 @@ class DataFrameSuite extends QueryTest
         // The data set has 2 partitions, so Spark will write at least 2 json 
files.
         // Use a non-splittable compression (gzip), to make sure the json scan 
RDD has at least 2
         // partitions.
-        .write.partitionBy("p").option("compression", 
"gzip").json(path.getCanonicalPath)
+        .write.partitionBy("p")
+        .option("compression", 
GZIP.lowerCaseName()).json(path.getCanonicalPath)

Review Comment:
   it's recommended to eliminate the `()` on calling Java no-arg method which 
has no side-effects
   ```suggestion
           .option("compression", 
GZIP.lowerCaseName).json(path.getCanonicalPath)
   ```



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to