I am trying to learn Calcite via MongoDB adapter, and I found there is a related tutorial section in HOWTO,]. But it seems to be a little out of date now, I found several issues at least:
1. model file: mongo-zips-model.json has been renamed into mongo-models.json.
2. data source file zips.json doesn't include all the data required in the models.json file.
3. the MongoDB adapter can not be directly used, because there is a log related bug when execute command ``!connect jdbc:calcite:model=mongodb/target/test-classes/mongo-model.json admin admin``, related output:
SLF4J: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError.
SLF4J: See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4jLoggerFactory