HyukjinKwon commented on a change in pull request #28955:
URL: https://github.com/apache/spark/pull/28955#discussion_r448069184
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFilterSuite.scala
##########
@@ -630,11 +639,14 @@ abstract class ParquetFilterSuite extends QueryTest with
ParquetTest with Shared
withSQLConf(SQLConf.PARQUET_OUTPUT_TIMESTAMP_TYPE.key ->
ParquetOutputTimestampType.INT96.toString) {
import testImplicits._
- withParquetDataFrame(
- millisData.map(i => Tuple1(Timestamp.valueOf(i))).toDF()) {
implicit df =>
- val schema = new
SparkToParquetSchemaConverter(conf).convert(df.schema)
- assertResult(None) {
- createParquetFilters(schema).createFilter(sources.IsNull("_1"))
+ withTempPath { file =>
+ millisData.map(i => Tuple1(Timestamp.valueOf(i))).toDF
+ .write.format(dataSourceName).save(file.getCanonicalPath)
+ readParquetFile(file.getCanonicalPath) { df =>
Review comment:
Yup. I couldn't find a better way without having another method.
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]