mymeiyi opened a new pull request, #33322:
URL: https://github.com/apache/doris/pull/33322

   ## Proposed changes
   
   If table column names contain keyword, and insert into table with specify 
columns in group commit mode like:
   ```
   set group_commit = sync_mode;
   INSERT INTO  demo.example_tbl_01(k1,`or`) values (2,"or"); 
   ```
   we get:
   ```
   org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = 
Syntax error in line 1:
   COLUMNS (k1,or)
               ^
   Encountered: OR
   Expected: OR is keyword, maybe `OR`
   
           at 
org.apache.doris.task.StreamLoadTask.setColumnToColumnExpr(StreamLoadTask.java:484)
 ~[doris-fe.jar:1.2-SNAP
   SHOT]
           at 
org.apache.doris.task.StreamLoadTask.setOptionalFromTSLPutRequest(StreamLoadTask.java:352)
 ~[doris-fe.jar:1
   .2-SNAPSHOT]
           at 
org.apache.doris.task.StreamLoadTask.fromTStreamLoadPutRequest(StreamLoadTask.java:326)
 ~[doris-fe.jar:1.2-
   SNAPSHOT]
           at 
org.apache.doris.planner.GroupCommitPlanner.<init>(GroupCommitPlanner.java:107) 
~[doris-fe.jar:1.2-SNAPSHOT
   ]
           at 
org.apache.doris.catalog.EnvFactory.createGroupCommitPlanner(EnvFactory.java:148)
 ~[doris-fe.jar:1.2-SNAPSH
   OT]
           at 
org.apache.doris.analysis.NativeInsertStmt.planForGroupCommit(NativeInsertStmt.java:1257)
 ~[doris-fe.jar:1.
   2-SNAPSHOT]
           at 
org.apache.doris.qe.StmtExecutor.handleInsertStmt(StmtExecutor.java:2101) 
~[doris-fe.jar:1.2-SNAPSHOT]
           at 
org.apache.doris.qe.StmtExecutor.executeByLegacy(StmtExecutor.java:954) 
~[doris-fe.jar:1.2-SNAPSHOT]
   ```
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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]

Reply via email to