koertkuipers commented on issue #25739: [WIP][SPARK-28945][CORE][SQL] Support 
concurrent dynamic partition writes to different partitions in the same table
URL: https://github.com/apache/spark/pull/25739#issuecomment-529995923
 
 
   > > my understanding is that currently if you don't have dynamic partition 
overwrite enabled it will always delete all partitions before writing.
   > 
   > IIRC, dynamic partition writing without dynamicPartitionOverwrite enabled, 
Spark will delete matching partitions(partitions prefixed by the static 
partition), not all partitions.
   > 
   > For example, when insert overwrite `Partition(day=20190910, hour=01, 
action)`, Spark will first delete all the partitions under 
`$some/path/to/table/location/day=20190910/hour=01`
   
   when i need to overwrite a particular partition in a filesource such as 
parquet i will write directly to the partition path, e.g.:
   ```
   
df.write.format("parquet").save("some/path/to/table/location/day=20190910/hour=01")
   ```
   but in that case concurrency already works, as the writers do not use the 
same baseDir.
   
   i was not aware that there is an alternative syntax or way of doing this 
without dynamic partition overwrite. sorry for the confusion.

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


With regards,
Apache Git Services

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

Reply via email to