2
我试图写出来的hiveContext与分区键数据框(对于兽人格式):火花:区分大小写partitionBy列
df.write().partitionBy("event_type").mode(SaveMode.Overwrite).orc("/path");
但是上我试图分区列有区分大小写值这是抛出一个错误而写:
Caused by: java.io.IOException: File already exists: file:/path/_temporary/0/_temporary/attempt_201607262359_0001_m_000000_0/event_type=searchFired/part-r-00000-57167cfc-a9db-41c6-91d8-708c4f7c572c.orc
event_type
列同时searchFired
和SearchFired
作为值。但是,如果我从数据框中删除其中的一个,那么我可以成功写入。我该如何解决这个问题?