[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:
@ -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();
|
||||
|
||||
@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user