[ 
https://issues.apache.org/jira/browse/CALCITE-2426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17022286#comment-17022286
 ] 

Andrei Sereda commented on CALCITE-2426:
----------------------------------------

Hi Platon,

It is possible this is a bug in mongo adapter. It doesn't handle very well 
{{SELECT *}} type of queries. 
The only option one can offer right now is  explicitly select fields in 
projection {{SELECT a, b, c}} which is not ideal, I agree.

I will try to fix this bug in a couple of weeks (quite busy right now).

> Calcite - mongodb - Returns row but no data displayed.
> ------------------------------------------------------
>
>                 Key: CALCITE-2426
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2426
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: sathishkumar
>            Assignee: Andrei Sereda
>            Priority: Critical
>
> sqlline version 1.3.0
>  sqlline> !connect 
> jdbc:calcite:schemaFactory=org.apache.calcite.adapter.mongodb.MongoSchemaFactory;schema.host=localhost;schema.database=*****;
>  admin admin
>  0: jdbc:calcite:schemaFactory=org.apache.calc> !tables
>  
>  
> +------------+------------++------------------------++-------------------++-----------------------++--------------------
> |TABLE_CAT|TABLE_SCHEM|TABLE_NAME|TABLE_TYPE|REMARKS|TYPE_CAT|TYPE_SCHEM|TYPE_NAME|SELF_REFERENCING_C|
> +------------+------------++------------------------++-------------------++-----------------------++--------------------
> | |adhoc|company_preferences|TABLE| | | | | |
> | |adhoc|property|TABLE| | | | | |
> | |adhoc|templates|TABLE| | | | | |
> | |adhoc|user_preferences|TABLE| | | | | |
> *| | adhoc | users | TABLE | | | | | |*
> | |metadata|COLUMNS|SYSTEM TABLE| | | | | |
> | |metadata|TABLES|SYSTEM TABLE| | | | | |
> +------------+------------++------------------------++-------------------++-----------------------++--------------------
>  0: jdbc:calcite:schemaFactory=org.apache.calc> *select * from "users";*
>  +------+
> |_MAP|
> +------+
> | |
> +------+
>  *1 row selected (0.584 seconds)*
>  0: jdbc:calcite:schemaFactory=org.apache.calc>



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to