diff --git a/extensions-core/multi-stage-query/src/test/java/org/apache/druid/sql/avatica/MSQDruidMeta.java b/extensions-core/multi-stage-query/src/test/java/org/apache/druid/sql/avatica/MSQDruidMeta.java index 9f32008b1aa..0473d1b8e48 100644 --- a/extensions-core/multi-stage-query/src/test/java/org/apache/druid/sql/avatica/MSQDruidMeta.java +++ b/extensions-core/multi-stage-query/src/test/java/org/apache/druid/sql/avatica/MSQDruidMeta.java @@ -114,29 +114,17 @@ public class MSQDruidMeta extends DruidMeta private Signature makeSignature(AbstractDruidJdbcStatement druidStatement, List cat) { RowSignature sig = ColumnAndType.toRowSignature(cat); - RelDataType rowType = decodeRowRelDataType(sig); + RelDataType rowType = RowSignatures.toRelDataType(sig, DruidTypeSystem.TYPE_FACTORY); return Meta.Signature.create( AbstractDruidJdbcStatement.createColumnMetaData(rowType), - "some query?", + "FIXME some query?", Collections.emptyList(), Meta.CursorFactory.ARRAY, - Meta.StatementType.SELECT // We only support SELECT + Meta.StatementType.SELECT ); } - private RelDataType decodeRowRelDataType(RowSignature sig) - { - return RowSignatures.toRelDataType(sig, DruidTypeSystem.TYPE_FACTORY); - - // typeFactory.createStructType( - // signature.stream() - // .map(columnAndType -> - // relDataTypeFactory.createJavaType(columnAndType.getType())) - // .toArray(RelDataType[]::new)); - - } - private String extractTaskId(AbstractDruidJdbcStatement druidStatement) { ExecuteResult r = super.doFetch(druidStatement, 2);