You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by 李天安 <lt...@mails.tsinghua.edu.cn> on 2019/03/03 06:36:30 UTC
Some issues about using calcite
Hi,
My Name is Tianan Li, recently I’m using your project calcite v1.18.0. I have met some issues and I need your help.
When I connect to postgresql via calcite, I found that I can not get remarks of table and columns via DatabaseMetaData.getTables ans databaseMetaData.getColumns methods. What’s more, I can not get primary keys of a table via DatabaseMetaData.getPrimaryKeys method.
Is that something wrong with my usage or a bug?
Thanks, I’m looking forward your reply.
Best,
Tianan Li
Re: Some issues about using calcite
Posted by Stamatis Zampetakis <za...@gmail.com>.
Hi Tianan Li,
I had a quick look in the codebase and I didn't find any unit tests
verifying the results of the methods in question so it is very likely that
there is a bug there.
Have a look in JdbcTest [1], JdbcAdapterTest [2], and see if you can
reproduce the problem.
Best,
Stamatis
[1]
https://github.com/apache/calcite/blob/master/core/src/test/java/org/apache/calcite/test/JdbcTest.java
[2]
https://github.com/apache/calcite/blob/master/core/src/test/java/org/apache/calcite/test/JdbcAdapterTest.java
Στις Κυρ, 3 Μαρ 2019 στις 12:45 μ.μ., ο/η Muhammad Gelbana <
m.gelbana@gmail.com> έγραψε:
> Have you tried the same methods with other databases ?
>
> On Sun, Mar 3, 2019, 8:36 AM 李天安 <lt...@mails.tsinghua.edu.cn> wrote:
>
> > Hi,
> > My Name is Tianan Li, recently I’m using your project calcite
> > v1.18.0. I have met some issues and I need your help.
> > When I connect to postgresql via calcite, I found that I can not
> > get remarks of table and columns via DatabaseMetaData.getTables ans
> > databaseMetaData.getColumns methods. What’s more, I can not get primary
> > keys of a table via DatabaseMetaData.getPrimaryKeys method.
> > Is that something wrong with my usage or a bug?
> > Thanks, I’m looking forward your reply.
> >
> > Best,
> > Tianan Li
> >
>
Re: Some issues about using calcite
Posted by Muhammad Gelbana <m....@gmail.com>.
Have you tried the same methods with other databases ?
On Sun, Mar 3, 2019, 8:36 AM 李天安 <lt...@mails.tsinghua.edu.cn> wrote:
> Hi,
> My Name is Tianan Li, recently I’m using your project calcite
> v1.18.0. I have met some issues and I need your help.
> When I connect to postgresql via calcite, I found that I can not
> get remarks of table and columns via DatabaseMetaData.getTables ans
> databaseMetaData.getColumns methods. What’s more, I can not get primary
> keys of a table via DatabaseMetaData.getPrimaryKeys method.
> Is that something wrong with my usage or a bug?
> Thanks, I’m looking forward your reply.
>
> Best,
> Tianan Li
>