richardantal commented on code in PR #108:
URL: 
https://github.com/apache/phoenix-connectors/pull/108#discussion_r1342490759


##########
phoenix5-spark3/src/main/java/org/apache/phoenix/spark/sql/connector/writer/PhoenixDataSourceWriteOptions.java:
##########
@@ -28,20 +28,20 @@
 class PhoenixDataSourceWriteOptions implements Serializable {
 
     private final String tableName;
-    private final String zkUrl;
+    private final String jdbcUrl;
     private final String tenantId;
     private final String scn;
     private final StructType schema;
     private final boolean skipNormalizingIdentifier;
     private final Properties overriddenProps;
 
-    private PhoenixDataSourceWriteOptions(String tableName, String zkUrl, 
String scn,
+    private PhoenixDataSourceWriteOptions(String tableName, String jdbcUrl, 
String scn,
                                           String tenantId, StructType schema, 
boolean skipNormalizingIdentifier,
                                           Properties overriddenProps) {
         if (tableName == null) {
             throw new NullPointerException();
         }
-        if (zkUrl == null) {
+        if (jdbcUrl == null) {

Review Comment:
   Why don't you throw IllegalArgumentException if the schema or the 
overriddenPropsos null?
   Like you done in the phoenix5-spark connector



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to