From adab94a7475be0bc4eb237db036670c82b7ac76d Mon Sep 17 00:00:00 2001 From: Tanner Clary Date: Mon, 25 Nov 2024 13:04:22 -0800 Subject: [PATCH] [CALCITE-6705] Allow for dialect-specific unparsing for numeric literals --- .../src/main/java/org/apache/calcite/sql/SqlNumericLiteral.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/calcite/sql/SqlNumericLiteral.java b/core/src/main/java/org/apache/calcite/sql/SqlNumericLiteral.java index bcb5064a183..29572c13607 100644 --- a/core/src/main/java/org/apache/calcite/sql/SqlNumericLiteral.java +++ b/core/src/main/java/org/apache/calcite/sql/SqlNumericLiteral.java @@ -84,7 +84,7 @@ public boolean isExact() { SqlWriter writer, int leftPrec, int rightPrec) { - writer.literal(toValue()); + writer.getDialect().unparseNumericLiteral(writer, toValue(), leftPrec, rightPrec); } @Override public String toValue() {