[case](paimon/iceberg)move cases from p2 to p0 (#37276) (#37738)

bp #37276

Co-authored-by: wuwenchi <wuwenchihdu@hotmail.com>
This commit is contained in:
Mingyu Chen
2024-07-13 10:01:05 +08:00
committed by GitHub
parent d91376cd52
commit 56a207c3f0
39 changed files with 658 additions and 1877 deletions

View File

@ -121,6 +121,11 @@ public class PaimonExternalTable extends ExternalTable {
if (scale > 6) {
scale = 6;
}
} else if (dataType instanceof org.apache.paimon.types.LocalZonedTimestampType) {
scale = ((org.apache.paimon.types.LocalZonedTimestampType) dataType).getPrecision();
if (scale > 6) {
scale = 6;
}
}
return ScalarType.createDatetimeV2Type(scale);
case ARRAY: