The problem is that it may not be easy to fix.
Swapping this may break some tests.

Mihai

________________________________
From: Stamatis Zampetakis <[email protected]>
Sent: Tuesday, March 24, 2026 11:41 AM
To: [email protected] <[email protected]>
Subject: Re: Lenient coercion table

I took a quick look at the code and to me it seems like a copy-paste
bug rather than intentional.

Best,
Stamatis


On Tue, Mar 24, 2026 at 5:33 AM Mihai Budiu <[email protected]> wrote:
>
> Calcite has a SqlTypeCoercionRule class, which has two instances: LENIENT and 
> INSTANCE. You would expect the LENIENT version to allow MORE type 
> conversions, but it's actually the opposite.
>
> For example, there are 18 casts allowed to TINYINT in the LENIENT version, 
> but 30 in the other version.
>
> Is this a bug, or is this intentional?
>
> Mihai

Reply via email to