File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
performance/src/main/java/com/clickhouse/benchmark/data Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 99import java .io .IOException ;
1010import java .io .StringReader ;
1111import java .nio .file .Files ;
12+ import java .nio .file .Path ;
1213import java .nio .file .Paths ;
1314import java .time .Duration ;
1415import java .time .LocalDateTime ;
@@ -69,7 +70,13 @@ public static void main(String[] args) throws IOException {
6970 return ;
7071 }
7172
72- inputSQL = new String (Files .readAllBytes (Paths .get (inputSQL )));
73+ try {
74+ Path path = Paths .get (inputSQL );
75+ System .out .println ("SQL file path: " + path + " cwd: " + System .getProperty ("user.dir" ));
76+ inputSQL = new String (Files .readAllBytes (path ));
77+ }catch (Exception e ) {
78+ e .printStackTrace ();
79+ }
7380
7481 // Parse the SQL create table statement
7582 List <Column > originalColumns ;
You can’t perform that action at this time.
0 commit comments