chl-wxp commented on code in PR #10186:
URL: https://github.com/apache/seatunnel/pull/10186#discussion_r2617688962


##########
seatunnel-connectors-v2/connector-jdbc/src/main/java/org/apache/seatunnel/connectors/seatunnel/jdbc/internal/dialect/psql/PostgresJdbcRowConverter.java:
##########
@@ -222,7 +221,15 @@ public PreparedStatement toExternal(
                 switch (seaTunnelDataType.getSqlType()) {
                     case STRING:
                         String sourceType = sourceTypes[fieldIndex];
-                        if (PG_INET.equalsIgnoreCase(sourceType)
+                        if (sourceType != null
+                                && (PG_GEOMETRY.equalsIgnoreCase(sourceType)
+                                        || 
PG_GEOGRAPHY.equalsIgnoreCase(sourceType))) {

Review Comment:
   @zhangshenghang  
   The sourceType here comes from source. Are you sure there is no problem? The 
logic code here only applies to pgsql-cdc ->pgsql. The sourceType should come 
from sink to apply to all sources. Please take a look at this PR: 
https://github.com/apache/seatunnel/pull/10076



-- 
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