File tree 1 file changed +10
-0
lines changed
paimon-hive/paimon-hive-connector-common/src/main/java/org/apache/paimon/hive 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,16 @@ 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 (schemaFieldTypeInfos
259
+ .get (i )
260
+ .getTypeName ()
261
+ .equals ("timestamp with local time zone" )) {
262
+ // Hive timestamp is compatible with paimon timestamp
263
+ // with local time zone
264
+ LOG .info (
265
+ "Hive DDL and paimon schema mismatched, but Hive timestamp is compatible with paimon timestamp with local time zone" );
266
+ continue ;
267
+ }
258
268
String ddlField =
259
269
hiveFieldNames .get (i ) + " " + hiveFieldTypeInfos .get (i ).getTypeName ();
260
270
String schemaField =
You can’t perform that action at this time.
0 commit comments