-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ability to turn off isolation level setting on connect? #52
Comments
Did you try setting isolation from the command line? ./sqlline --isolation=TRANSACTION_NONE For what it's worth, DRILL-3114 seems to be related to this issue. |
Hello Julian, yes I tried that as well
|
I'll see if I hear anything back from the folks @ Simba.... |
It does sound like a bug in Simba's JDBC driver. But since JDBC drivers often do have bugs, it would be useful to have a way to prevent sqlline from calling |
There is a suggestion besides |
Good idea. |
Fixed in 2a84c36, PR #126. Thanks @snuyanzin! |
I'm trying out the new Simbda JDBC driver for Big Query, and it seems to work fine with SQLLine except for during the initial connection I get an erro about setting the isolation level. I believe there's no such thing with Big Query. I was wondering if there's a way to have SQLLine not issue the set isolation level automatically? Other than this, it seems to be working, and I can ignore this...
I also have an email into the Simba support re: isolation levels, but thought I would ask this anyways.
Dan-Young:sql-line dan$ java -Djava.ext.dirs=$PWD sqlline.SqlLine --verbose=true
sqlline version 1.2.0
sqlline> !properties big-query-service.properties
Connecting to jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=[my-project];OAuthType=0;OAuthServiceAcctEmail=[service-account];OAuthPvtKeyPath=[key-path];Timeout=60;LogLevel=6;LogPath=/tmp
Connected to: Google BigQuery (version 2.0)
Driver: SimbaDriverforGoogleBigQuery (version 01.00.02.1003)
Autocommit status: true
Error: [Simba]JDBC Unsupported transaction isolation level: 4. (state=HY000,code=11975)
java.sql.SQLException: [Simba]JDBC Unsupported transaction isolation level: 4.
at com.simba.exceptions.ExceptionConverter.toSQLException(Unknown Source)
at com.simba.jdbc.common.SConnection.setTransactionIsolation(Unknown Source)
at sqlline.Commands.isolation(Commands.java:679)
at sqlline.DatabaseConnection.connect(DatabaseConnection.java:186)
at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:203)
at sqlline.Commands.connect(Commands.java:1064)
at sqlline.Commands.properties(Commands.java:948)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
at sqlline.SqlLine.dispatch(SqlLine.java:809)
at sqlline.SqlLine.begin(SqlLine.java:686)
at sqlline.SqlLine.start(SqlLine.java:398)
at sqlline.SqlLine.main(SqlLine.java:291)
The text was updated successfully, but these errors were encountered: