[
https://issues.apache.org/jira/browse/CALCITE-2426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16560457#comment-16560457
]
Andrei Sereda commented on CALCITE-2426:
----------------------------------------
Hmm.
Try to create views on the top of your mongo collections like described in the
documentation.
Then join those views. Let me know if it works.
> 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: Julian Hyde
> 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
(v7.6.3#76005)