Hey, I recently submitted a draft PR to fix CALCITE-5387 <https://issues.apache.org/jira/browse/CALCITE-5387>, which can be found here <https://github.com/apache/calcite/pull/3452>. I am currently waiting on access to update the JIRA ticket, so I thought I'd ping the mailing list for feedback in the meantime. I apologize if this is unnecessary spam.
Thanks, Keaton Drebes
