Skip to content

Commit d94f984

Browse files
committed
Support OBJECT data type
1 parent a7993f1 commit d94f984

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBAlterColumnTypeIT.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,6 @@ public void testWriteAndAlter()
127127

128128
for (TSDataType from : typesToTest) {
129129
for (TSDataType to : typesToTest) {
130-
if (from == TSDataType.TEXT && to == TSDataType.STRING) {
131-
// continue;
132-
} else {
133-
continue;
134-
}
135-
136130
if (from != to && to.isCompatible(from)) {
137131
System.out.printf("testing %s to %s%n", from, to);
138132
doWriteAndAlter(from, to);

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/AlignedTVList.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ private Object getObjectByValueIndex(int rowIndex, int columnIndex) {
452452
case STRING:
453453
case BLOB:
454454
case TEXT:
455+
case OBJECT:
455456
return ((Binary[]) columnValues.get(arrayIndex))[elementIndex];
456457
default:
457458
throw new IllegalArgumentException(dataTypes.get(columnIndex) + " is not supported");

0 commit comments

Comments
 (0)