Skip to content

Commit

Permalink
KYLIN-3559 Resolve UT issues
Browse files Browse the repository at this point in the history
  • Loading branch information
whuwb authored and shaofengshi committed Nov 26, 2018
1 parent 920ac2f commit b046585
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import org.apache.calcite.sql.type.SqlTypeName;
import org.apache.calcite.sql.type.SqlTypeUtil;
import org.apache.calcite.util.ImmutableBitSet;
import org.apache.kylin.common.util.StringUtil;
import org.apache.kylin.metadata.datatype.DataType;
import org.apache.kylin.metadata.model.ColumnDesc;
import org.apache.kylin.metadata.model.FunctionDesc;
Expand Down Expand Up @@ -187,7 +186,7 @@ public static RelDataType createSqlType(RelDataTypeFactory typeFactory, DataType

RelDataType result;
if (sqlTypeName == SqlTypeName.ARRAY) {
String innerTypeName = StringUtil.split(dataType.getName(), "<|>")[1];
String innerTypeName = dataType.getName().split("<|>")[1];
result = typeFactory.createArrayType(createSqlType(typeFactory, DataType.getType(innerTypeName), false),
-1);
} else if (precision >= 0 && scale >= 0)
Expand Down

0 comments on commit b046585

Please sign in to comment.