Github user cloud-fan commented on the issue:

    https://github.com/apache/spark/pull/17277
  
    @gatorsmile I think the behavior of spark SQL should be
    
    1. throw exception for invalid partition values(e.g. empty string), for 
both table write path(`DataFrameWriter.saveAsTable`) and data source write path 
`DataFrameWriter.save`
    2. null is a valid partition value.
    3. `HIVE_DEFAULT_PARTITION` is an invalid partition value
    
    This PR doesn't fix all of them but I think it's a good start to deal with 
special partition values. I'll create more JIRA tickets after this.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to