vitvara commented on code in PR #68795:
URL: https://github.com/apache/doris/pull/68795#discussion_r4229863709


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/analyzer/UnboundVariable.java:
##########
@@ -80,6 +80,20 @@ public String toString() throws UnboundException {
         }
     }
 
+    @Override
+    public String computeToSql() {
+        switch (type) {
+            case USER:
+                return "@" + name;

Review Comment:
   Fixed: user variables are now always rendered backquoted (inner backticks 
doubled), so `SHOW ROW POLICY` prints ``(region = @`allowed-region`)`` and it 
re-parses to the same variable. Covered in `UnboundVariableTest`.



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