[feature](outfile) support parquet writer (#12492)

This commit is contained in:
Gabriel
2022-09-15 11:09:12 +08:00
committed by GitHub
parent 22a8d35999
commit fc4298e85e
6 changed files with 777 additions and 23 deletions

View File

@ -233,9 +233,8 @@ public class OutFileClause {
case TINYINT:
case SMALLINT:
case INT:
case DATEV2:
if (!type.equals("int32")) {
throw new AnalysisException("project field type is TINYINT/SMALLINT/INT/DATEV2,"
throw new AnalysisException("project field type is TINYINT/SMALLINT/INT,"
+ "should use int32, " + "but the definition type of column " + i + " is " + type);
}
break;
@ -243,9 +242,10 @@ public class OutFileClause {
case DATE:
case DATETIME:
case DATETIMEV2:
case DATEV2:
if (!type.equals("int64")) {
throw new AnalysisException("project field type is BIGINT/DATE/DATETIME, should use int64, "
+ "but the definition type of column " + i + " is " + type);
throw new AnalysisException("project field type is BIGINT/DATE/DATETIME/DATEV2/DATETIMEV2,"
+ "should use int64, but the definition type of column " + i + " is " + type);
}
break;
case FLOAT:
@ -305,13 +305,13 @@ public class OutFileClause {
case TINYINT:
case SMALLINT:
case INT:
case DATEV2:
column.add("int32");
break;
case BIGINT:
case DATE:
case DATETIME:
case DATETIMEV2:
case DATEV2:
column.add("int64");
break;
case FLOAT: