-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Downgraded all Java 21 dependent code to Java 11
- Loading branch information
Showing
6 changed files
with
335 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,7 @@ | |
public class Main { | ||
public static void main(String[] args) throws IOException, SQLException, ClassNotFoundException { | ||
|
||
// String jdbcUrl = "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443?ProjectId=MyProject26996&OAuthType=0&[email protected]"; | ||
// String encodedUrl = URLEncoder.encode(url, StandardCharsets.UTF_8.toString()); | ||
// System.out.println(encodedUrl); | ||
// Class.forName("com.simba.googlebigquery.jdbc42.Driver"); | ||
// Connection conn = DriverManager.getConnection(jdbcUrl); | ||
|
||
String modelPath = "../../adapters/databricks/model.json"; | ||
String modelPath = "../../adapters/file/model.json"; | ||
String username = "<username>"; | ||
String password = "<password>"; | ||
Connection calciteConnection = null; | ||
|
@@ -30,12 +24,7 @@ public static void main(String[] args) throws IOException, SQLException, ClassNo | |
calciteConnection = query.createCalciteConnection(modelPath); | ||
String x = query.getModels(); | ||
System.out.println(x); | ||
String q1 = """ | ||
SELECT * from "lineitem" | ||
OFFSET 2 ROWS | ||
FETCH NEXT 5 ROWS ONLY | ||
"""; | ||
String q1 = "SELECT * from \"DEPTS\""; | ||
String z1 = query.queryModels(q1); | ||
System.out.println(z1); | ||
// String z2 = query.queryModels(""" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.