Re: unparse for NULL with a type

2025-07-08 Thread Mihai Budiu
This is related to https://issues.apache.org/jira/browse/CALCITE-5987 Casts for NULLs are meaningful, they should not be removed in general. Mihai From: Guillaume Masse Sent: Tuesday, July 8, 2025 10:06 AM To: dev@calcite.apache.org Subject: unparse for NULL

unparse for NULL with a type

2025-07-08 Thread Guillaume Masse
Hi, I'm having issues unparsing `NULL` with a certain type T. My goal is to have: `CAST(NULL AS T)` when I unparse my RexNode. If I create a null literal with: `rexBuilder.makeNullLiteral(myTypeT)`, `RelToSqlConverter` will simply drop the type and render NULL. If I explicitly create a cast nul