File tree 1 file changed +11
-0
lines changed
paimon-hive/paimon-hive-connector-common/src/main/java/org/apache/paimon/hive 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,17 @@ private static void checkFieldsMatched(
255
255
for (int i = 0 ; i < hiveFieldNames .size (); i ++) {
256
256
if (!hiveFieldNames .get (i ).equalsIgnoreCase (schemaFieldNames .get (i ))
257
257
|| !Objects .equals (hiveFieldTypeInfos .get (i ), schemaFieldTypeInfos .get (i ))) {
258
+ if (hiveFieldNames .get (i ).equalsIgnoreCase (schemaFieldNames .get (i ))
259
+ && hiveFieldTypeInfos .get (i ).getTypeName ().equals ("timestamp" )
260
+ && schemaFieldTypeInfos
261
+ .get (i )
262
+ .getTypeName ()
263
+ .equals ("timestamp with local time zone" )) {
264
+ // Hive timestamp is compatible with paimon timestamp with local time zone
265
+ LOG .warn (
266
+ "Hive DDL and paimon schema mismatched, but Hive timestamp is compatible with paimon timestamp with local time zone" );
267
+ continue ;
268
+ }
258
269
String ddlField =
259
270
hiveFieldNames .get (i ) + " " + hiveFieldTypeInfos .get (i ).getTypeName ();
260
271
String schemaField =
You can’t perform that action at this time.
0 commit comments