Oops. I should have read your message more thoroughly. It looks as if views are correctly using the ‘internal connection’ and lattices are not but should be.
> On Jun 21, 2024, at 3:52 PM, Julian Hyde <[email protected]> wrote: > > It’s possible that the behavior you see is correct. A model should be correct > (or incorrect) for all users of the model. Therefore, the model should not be > parsed using the connection parameters (e.g. case-sensitivity of identifiers) > of the particular connection that uses the model, but rather some constant > connection parameters. > > I don’t recall where the parameters of the ‘internal connection’ are stored. > > This applies to views as well as lattices, by the way. > > Julian > > >> On Jun 21, 2024, at 12:02 PM, Hugh Pearse <[email protected]> wrote: >> >> The issue can be traced to here: >> https://github.com/apache/calcite/blob/calcite-1.36.0/core/src/main/java/org/apache/calcite/prepare/CalcitePrepareImpl.java#L200-L203 >> >> Which is caused by using: >> https://github.com/apache/calcite/blob/calcite-1.36.0/core/src/main/java/org/apache/calcite/prepare/CalcitePrepareImpl.java#L375-L378 >> https://github.com/apache/calcite/blob/calcite-1.36.0/core/src/main/java/org/apache/calcite/prepare/CalcitePrepareImpl.java#L396-L399 >> >> >> >> From, >> Hugh Pearse >
