TaoZex commented on code in PR #6683:
URL: https://github.com/apache/seatunnel/pull/6683#discussion_r1560519506
##########
seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/source/reader/ParquetReadStrategy.java:
##########
@@ -287,9 +299,8 @@ private SeaTunnelDataType<?> parquetType2SeaTunnelType(Type
type) {
case DATE:
return LocalTimeType.LOCAL_DATE_TYPE;
default:
- String errorMsg = String.format("Not support this
type [%s]", type);
- throw new FileConnectorException(
-
CommonErrorCodeDeprecated.UNSUPPORTED_DATA_TYPE, errorMsg);
+ throw CommonError.convertToSeaTunnelTypeError(
+ "Parquet", type.toString(), name);
Review Comment:
How about declaring "Parquet" as a constant?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]