diqiu50 opened a new issue, #14062:
URL: https://github.com/apache/gravitino/issues/14062

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   `StarRocksTableOperations#renameColumnDefinition` builds `RENAME COLUMN %s 
TO %s` without backticks, while other StarRocks DDL quotes identifiers. 
Renaming a column with special characters (e.g. `order-id`) or to a reserved 
word (e.g. `key`) fails.
   
   ### Error message and/or stacktrace
   
   Getting syntax error at line 2, column 14. Detail message: Unexpected input 
'order', the most similar input is {a legal identifier}.
   
   ### How to reproduce
   
   1. Create a StarRocks table with columns `id`, `order-id`.
   2. Rename column `order-id` to `order_id`.
   3. The alter fails with a syntax error.
   
   ### Additional context
   
   Verified on StarRocks 3.3.
   


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

Reply via email to