Comments (5)
Just an additional note: it appears this is also affecting several other statements I used to be able to execute:
SHOW WAREHOUSES LIKE ...
ALTER WAREHOUSE %s RESUME
from snowflake-jdbc.
Hi @KAllan357 Thanks for reporting.
First I am not an expert clojure.java.jdbc. Is this a tool? Or a package on top of JDBC driver.
From the stacktrace it seems that clojure.java.jdbc/db-do-command
maps to Java Statement.exeuteBatch()
and from Javadoc, it states that executeBatch
will throw SQLException
if the statement generate a result set. https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#executeBatch()
And from 3.3.0 we decided to disable PreparedStatement on certain statements type. And right now it only worked for SELECT
statement and DML
. For DDL
and all other statements type, we returned exception now.
Do you know clojure.java.jdbc have api which will use Statement.exeucte()
api?
From their doc, it seems that they are using PreparedStatement
all the time.
from snowflake-jdbc.
Update:
Just discussed with my colleagues, we decide to catch such exceptions in JDBC. and ignore it. Then you can execute show transactions
. Hopefully it will solve your problem.
from snowflake-jdbc.
@howryu clojure.java.jdbc is the defacto JDBC library for Clojure and as you saw, they chose to execute prepared statements throughout their code.
Your proposed solution to relax the strictness of executing prepared statements sounds good.
from snowflake-jdbc.
@KAllan357
This is resolved in 45f9506. Release is planned in JDBC v3.4.0 for 30th Nov
from snowflake-jdbc.
Related Issues (20)
- Snyk: snowflake-jdbc org.apache.commons:commons-compress 1.23.0 | Snyk ID - SNYK-JAVA-ORGAPACHECOMMONS-5901530
- Snyk: snowflake-jdbc org.apache.httpcomponents:httpclient 4.5.11 | Snyk ID - SNYK-JAVA-ORGAPACHEHTTPCOMPONENTS-1048058 HOT 1
- Snyk: snowflake-jdbc commons-codec:commons-codec 1.11 | Snyk ID - SNYK-JAVA-COMMONSCODEC-561518 HOT 1
- SNOW-965025: Publish a non-shaded artifact to Maven Central HOT 7
- SNOW-965692: jdbc connector doesn't work for private link HOT 1
- SNOW-972142: The CLIENT_RESULT_CHUNK_SIZE parameter is not taken into account in different ways of executing the request HOT 3
- SNOW-974631: Socket timeout errors from 3.14.x version onwards HOT 23
- SNOW-980268: JWT Expiry and Query Execution Time in Snowflake JDBC Driver
- SNOW-980272: Direct memory not freed / deallocated when using ARROW result format and streaming
- SNOW-981505: getColumns with table name doesn't return columns for dynamic tables
- SNOW-982484: Data type not supported for binding: 2014
- SNOW-985458: Netty Vulnerability in Snowflake JDBC dependency. HOT 2
- SNOW-990764: Allow disabling certificate validation HOT 7
- SNOW-999335: Spark snowflake read results in certificate issue HOT 13
- SNOW-1001015: Cannot convert value in the driver from type:FIXED(38,0) to type:int, value=5,738,342,984 HOT 2
- SNOW-1003959: Slow query in spring boot not showing the SQL executed. HOT 6
- SNOW-1005946: Make SQL text optional for the input to `StmtUtil.cancel`
- SNOW-1008792: since 3.13.19 , I can not package the snowflake-jdbc into my fat jar HOT 2
- SNOW-1023077: JDBC driver package is too big HOT 2
- SNOW-1042432: Do not use com.amazonaws classes in core SF classes HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snowflake-jdbc.