This is an automated email from the ASF dual-hosted git repository.

mihaibudiu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git

commit 7311760481af747175d0119ebdb83d58c14fc684
Author: Mihai Budiu <[email protected]>
AuthorDate: Mon Jun 29 13:56:33 2026 -0700

    Unparse should not use sep unless inside a list
    
    Signed-off-by: Mihai Budiu <[email protected]>
---
 core/src/main/java/org/apache/calcite/sql/SqlStarReplace.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/java/org/apache/calcite/sql/SqlStarReplace.java 
b/core/src/main/java/org/apache/calcite/sql/SqlStarReplace.java
index b5149a6403..28b5f5ab42 100644
--- a/core/src/main/java/org/apache/calcite/sql/SqlStarReplace.java
+++ b/core/src/main/java/org/apache/calcite/sql/SqlStarReplace.java
@@ -76,7 +76,7 @@ public SqlNodeList getReplaceList() {
 
   @Override public void unparse(SqlWriter writer, int leftPrec, int rightPrec) 
{
     starIdentifier.unparse(writer, leftPrec, rightPrec);
-    writer.sep("REPLACE");
+    writer.keyword("REPLACE");
     final SqlWriter.Frame frame = writer.startList("(", ")");
     replaceList.unparse(writer, 0, 0);
     writer.endList(frame);

Reply via email to