[Enhancement](MaxCompute)Refactoring maxCompute catalog using Storage API.(#40225 , #40888 ,#41386 ) (#41610)

bp #40225 , #40888 ,#41386

## Proposed changes
Among them, #40225 is the new api of mc,
#40888 is used to fix the bug when reading null between the new and old
apis,
#41386 is used for compatibility between the new and old versions
This commit is contained in:
daidai
2024-10-11 11:55:41 +08:00
committed by GitHub
parent b489cdf840
commit 8c0f73cb90
33 changed files with 3004 additions and 1025 deletions

View File

@ -59,6 +59,18 @@ public interface ColumnValue {
LocalDate getDate();
default String getChar() {
return getString();
}
default byte[] getCharAsBytes() {
return getStringAsBytes();
}
default boolean canGetCharAsBytes() {
return canGetStringAsBytes();
}
LocalDateTime getDateTime();
byte[] getBytes();

View File

@ -1527,6 +1527,12 @@ public class VectorColumn {
appendDateTime(o.getDateTime());
break;
case CHAR:
if (o.canGetCharAsBytes()) {
appendBytesAndOffset(o.getCharAsBytes());
} else {
appendStringAndOffset(o.getChar());
}
break;
case VARCHAR:
case STRING:
if (o.canGetStringAsBytes()) {