Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.6.0
-
None
-
None
-
Windows
Description
Sqlline.bat in csv example is not working because classpath is missing. The error messages are like below:
Caused by: java.lang.ClassNotFoundException: org.apache.calcite:adapter.csv.CsvSchemaFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.apache.calcite.model.ModelHandler.visit(ModelHandler.java:210) ... 18 more
In the file sqlline.bat, the parameter of -cp is ".\target\dependencies*" while the required calcite-example-csv-VERSION.jar is not included in this path which causes the exception.
Maybe we can fix the -cp parameter to "target\test-classes;target\classes;target\dependencies*".