Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Not A Bug
-
5.0.0
-
None
-
None
-
jar-version
<dependency>
<groupId>org.apache.phoenix</groupId>
<artifactId>phoenix-spark</artifactId>
<version>5.0.0-HBase-2.0</version>
</dependency>my code:
dataFrame.write
.format("org.apache.phoenix.spark")
.option("table", table)
.option("zkUrl", zkUrl)
.option("skipNormalizingIdentifier", true)
.save()
}jar-version <dependency> <groupId>org.apache.phoenix</groupId> <artifactId>phoenix-spark</artifactId> <version>5.0.0-HBase-2.0</version> </dependency> my code: dataFrame.write .format("org.apache.phoenix.spark") .option("table", table) .option("zkUrl", zkUrl) .option("skipNormalizingIdentifier", true) .save() }
Description
org.apache.phoenix.spark.DefaultSource
Savemode will not report errors unless it is set to overwrite,But the message to throw an exception is that overwrite is not supported
think it might be written like this,The logic is the opposite
if (mode.equals(SaveMode.Overwrite))
{ throw new Exception("SaveMode other than SaveMode.OverWrite is not supported") }