Re: [DISCUSS] SqlDialect.getCastSpec() doesn't work when unparsing SqlNode tree

2020-07-20 Thread Rui Wang
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, 20

[DISCUSS] SqlDialect.getCastSpec() doesn't work when unparsing SqlNode tree

2020-07-20 Thread Pavel Gubin
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 alter