Fwd: How to pass model.json location in jar packaging
I am trying to connect to calcite using java via following statement.
connection = DriverManager.getConnection("jdbc:calcite:model=model.json",
Its working fine when running main class directly. However when I am
packaging it inside jar and keeping model.json in resource folder, I
am not finding any way to pass model.json.
In jar the resource files are to be accessed as ResourceStream. Is
there any way to pass Inputstream to calcite or any other way to
implement inside a jar?