[ https://issues.apache.org/jira/browse/CALCITE-4908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Woonsan Ko updated CALCITE-4908: -------------------------------- Description: In JDBC uri with a model file reference like 'jdbc:calcite:model=/a/b/c/model.json', it would be nice if we support a classpath resource name (path) too like 'jdbc:calcite:model=classpath:/a/b/c/model.json'. It would be very helpful to my web application envs. A classpath resource cannot be always converted to a File object if the resource is in a jar or war, etc. was: In JDBC uri with a model file reference like 'jdbc:calcite:model=/a/b/c/model.json', it would be nice if we support a classpath resource path URI too like 'jdbc:calcite:model=classpath:/a/b/c/model.json'. It would be very helpful to my web application envs. A classpath resource cannot be always converted to a File object if the resource is in a jar or war, etc. > Support classpath resource name as model resource path > ------------------------------------------------------ > > Key: CALCITE-4908 > URL: https://issues.apache.org/jira/browse/CALCITE-4908 > Project: Calcite > Issue Type: Improvement > Components: core > Reporter: Woonsan Ko > Priority: Minor > Labels: pull-request-available > Fix For: 1.29.0 > > Time Spent: 50m > Remaining Estimate: 0h > > In JDBC uri with a model file reference like > 'jdbc:calcite:model=/a/b/c/model.json', it would be nice if we support a > classpath resource name (path) too like > 'jdbc:calcite:model=classpath:/a/b/c/model.json'. > It would be very helpful to my web application envs. A classpath resource > cannot be always converted to a File object if the resource is in a jar or > war, etc. -- This message was sent by Atlassian Jira (v8.20.1#820001)