I think you're saying that prepare can return warnings. I wasn’t aware of that; I was only aware of warnings from execution (e.g. divide by zero happened).
Can you describe what warnings facility you have in mind? > On Dec 18, 2023, at 10:53 PM, Mihai Budiu <[email protected]> wrote: > > All these cases where at compile time an exception is thrown and caught could > be warnings - e.g. Casts that will fail at runtime, division by 0, etc. > > Mihai > ________________________________ > From: Julian Hyde <[email protected]> > Sent: Monday, December 18, 2023 10:41:11 PM > To: [email protected] <[email protected]> > Subject: Re: warnings in Calcite > > I don’t think so. One place to surface warnings would be via > java.sql.Statement.getWarnings() but Avatica’s default implementation of that > method returns null. > > What are some scenarios where you think Calcite should give a warning? > > Julian > > >> On Dec 18, 2023, at 7:13 PM, Mihai Budiu <[email protected]> wrote: >> >> Does calcite have any facilities for reporting warnings to users? >> >> Thank you, >> Mihai >
