Hi Pavel,

Not sure if I understand your question, does override
"SqlDialect.unparseCall" [1] provide an entry point to customize CAST
unparsing per dialect?


[1]:
https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/sql/SqlDialect.java#L442

-Rui

On Mon, Jul 20, 2020 at 4:44 AM Pavel Gubin <pvgu...@gmail.com> wrote:

> Currently SqlDialect.getCastSpec() is used to amend types to cast to for
> different dialects and works during Rel to Sql conversion. That means it
> cannot be used when unparsing SqlNode tree to a specific dialect. Does
> somebody know was it made intentionally and would it be better to provide
> alternative method to convert cast types fully in SqlNode tree that can be
> used during SqlNode.unparse()?
>
> Thanks,
> Pavel Gubin

Reply via email to