Hi Guys,
I followed the instructions connecting to the database but when testing, i got this error:
CalciteConnectionProvider.DataSourceModelMissingException: Couldn’t find the configuration file(model) for the connection
Please what does this mean:
Find below m mongo-model.json script
inline: {
_ version: ‘1.0’,_
_ defaultSchema: ‘firstdb’,_
_ schemas: [_
_ {_
_ type: ‘custom’,_
_ name: ‘firstdb’,_
_ factory: ‘org.apache.calcite.adapter.mongodb.MongoSchemaFactory’,_
_ operand: {_
_ host: ‘localhost:27017’,_
_ database: ‘firstdb’_
_ }_
_ },_
_ {_
_ name: ‘cd’,_
_ tables: [_
_ {_
_ name: ‘capture_data’,_
_ type: ‘view’,_
_ sql: 'select cast(MAP[‘uniqueId’] AS VARCHAR(30)) AS “uniqueId”\nfrom “firstdb”.“capture_data”’
_ } _
_ ]_
_ }_
_ ]_
}