maropu commented on issue #23648: [BRANCH-2.3][SPARK-26709][SQL] 
OptimizeMetadataOnlyQuery does not handle empty records correctly
URL: https://github.com/apache/spark/pull/23648#issuecomment-457602110
 
 
   It seems the test couldn't create an empty parition crrectly..... how about 
this?
   ```
   sql("CREATE TABLE t (col1 INT, p1 INT) USING PARQUET PARTITIONED BY (p1)")
   sql("INSERT INTO TABLE t PARTITION (p1 = 5) SELECT 1")
   sql("TRUNCATE TABLE t PARTITION (p1 = 5)")
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to