TyrantLucifer commented on code in PR #3581:
URL:
https://github.com/apache/incubator-seatunnel/pull/3581#discussion_r1032861875
##########
seatunnel-connectors-v2/connector-hudi/src/main/java/org/apache/seatunnel/connectors/seatunnel/hudi/util/HudiUtil.java:
##########
@@ -68,14 +69,15 @@ public static String getParquetFileByPath(String confPaths,
String path) throws
return null;
}
- public static SeaTunnelRowType getSeaTunnelRowTypeInfo(String confPaths,
String path) throws HudiPluginException {
+ public static SeaTunnelRowType getSeaTunnelRowTypeInfo(String confPaths,
String path) throws HudiConnectorException {
Configuration configuration = getConfiguration(confPaths);
Path dstDir = new Path(path);
ParquetMetadata footer;
try {
footer = ParquetFileReader.readFooter(configuration, dstDir,
NO_FILTER);
} catch (IOException e) {
- throw new HudiPluginException("Create ParquetMetadata Fail!", e);
+ throw new
HudiConnectorException(HudiConnectorErrorCode.CREATE_PARQUET_METADATA_FAILED,
Review Comment:
CommonErrorCode.TABLE_SCHEMA_GET_FAILED is better.
--
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]