[
https://issues.apache.org/jira/browse/PHOENIX-6229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17235314#comment-17235314
]
Istvan Toth commented on PHOENIX-6229:
--------------------------------------
Please use english when communicating with the Apache Phoenix community.
> dataframe写入phoniex时,saveMode设置为除了overwrite方式时都会报错
> -------------------------------------------------
>
> Key: PHOENIX-6229
> URL: https://issues.apache.org/jira/browse/PHOENIX-6229
> Project: Phoenix
> Issue Type: Bug
> Components: spark-connector
> Affects Versions: 5.0.0
> Environment: 版本
> <dependency>
> <groupId>org.apache.phoenix</groupId>
> <artifactId>phoenix-spark</artifactId>
> <version>5.0.0-HBase-2.0</version>
> </dependency>
> 我的写法
> dataFrame.write
> .format("org.apache.phoenix.spark")
> .mode("overwrite")
> .option("table", table)
> .option("zkUrl", zkUrl)
> .option("skipNormalizingIdentifier", true)
> .save()
> }
> Reporter: 何军红
> Priority: Minor
> Attachments: image-2020-11-19-17-17-43-669.png
>
>
> org.apache.phoenix.spark.DefaultSource
> 只有saveMode是overwrite才不会抛异常,但抛异常的信息是不支持overwrite
> 应该是
> if (mode.equals(SaveMode.Overwrite)) {
> throw new Exception("SaveMode other than SaveMode.OverWrite is not
> supported")
> }
> !image-2020-11-19-17-17-43-669.png|width=648,height=149!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)