我将尝试使用hiveContext将一个数据框(orc格式)写入分区键中:
然而,我正在尝试进行分区的列具有区分大小写的值,这会在写入时引发错误:
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
。但是,如果我从数据框中删除其中一个,我就可以成功写入。我该如何解决这个问题?