Re: Calcite can't generate code for one of the query

2022-01-29 Thread Dmitry Sysolyatin
I don't use ReflectiveSchema. I created RelProtoDataType using RelDataTypeImpl.*proto *directly. Is there any documentation where I can find a list of supported types ? On Fri, Jan 28, 2022 at 6:51 PM Julian Hyde wrote: > I guess you’re using ReflectiveSchema. I don’t think we support

Re: Calcite can't generate code for one of the query

2022-01-28 Thread Julian Hyde
I guess you’re using ReflectiveSchema. I don’t think we support columns of (Java) type Character or char. You should convert relkind to a String and I think things will be better. > On Jan 28, 2022, at 4:44 AM, Dmitry Sysolyatin > wrote: > > I found a way how to make the query work. But I

Re: Calcite can't generate code for one of the query

2022-01-28 Thread Dmitry Sysolyatin
I found a way how to make the query work. But I don't understand the reason: If `relkind` is JavaType(char) (primitive type) then the query does not work If `relkind` is JavaType(java.lang.Character) then the query works. On Fri, Jan 28, 2022 at 12:59 PM Dmitry Sysolyatin wrote: > Hi! > > I am

Calcite can't generate code for one of the query

2022-01-28 Thread Dmitry Sysolyatin
Hi! I am implementing a wrapper over calcite in order to use it like Postgres server. But I have a problem with one of a query that Postgres driver sends to the server. The query: SELECT NULL AS TABLE_CAT, n.nspname AS TABLE_SCHEM, c.relname AS TABLE_NAME, CASE n.nspname ~ '^pg_' OR