MiniSho commented on code in PR #13466:
URL: https://github.com/apache/iotdb/pull/13466#discussion_r1766088587
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/parser/ASTVisitor.java:
##########
@@ -2005,6 +2006,28 @@ private long parseTimeValue(ConstantContext constant) {
@Override
public Statement visitLoadFile(IoTDBSqlParser.LoadFileContext ctx) {
try {
+ // if sql have with, return new load sql statement
+ if (ctx.loadFileWithAttributeClauses() != null) {
+ final Map<String, String> loadTsFileAttributes = new HashMap<>();
+ if (ctx.loadFileWithAttributeClauses() != null) {
Review Comment:
I'm wondering if there's a specific reason for this nested check, or if the
inner `if` statement might be unnecessary?
--
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]