morningman commented on code in PR #35139:
URL: https://github.com/apache/doris/pull/35139#discussion_r1609473889
##########
fe/fe-core/src/main/java/org/apache/doris/tablefunction/ExternalFileTableValuedFunction.java:
##########
@@ -174,9 +175,18 @@ protected void parseFile() throws AnalysisException {
//The keys in properties map need to be lowercase.
protected Map<String, String> parseCommonProperties(Map<String, String>
properties) throws AnalysisException {
+ Map<String, String> mergedProperties = Maps.newHashMap();
+ if (properties.containsKey("resource")) {
+ Resource resource =
Env.getCurrentEnv().getResourceMgr().getResource(properties.get("resource"));
+ if (resource == null) {
+ throw new AnalysisException("Can not find resource: " +
properties.containsKey("resource"));
Review Comment:
```suggestion
throw new AnalysisException("Can not find resource: " +
properties.get("resource"));
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]