Comments (6)
Yes. Connection is thread-safe and it can be shared by multiple statements.
from snowflake-jdbc.
Awesome! Can we rely on this in the future as well (given that this is not documented anywhere)?
from snowflake-jdbc.
Yes. You can rely on it. If it does not work, it will be treated as a bug.
I will add documenting this to my todo list.
from snowflake-jdbc.
Perfect, thanks!
from snowflake-jdbc.
Hi, so I just ran into an issue where k records from across n Spark dataframes are written as k+y where y is non-deterministic, using concurrent write using same SF jdbc connection (drivers: spark-snowflake_2.11-2.5.2-spark_2.4.jar, snowflake-jdbc-3.9.1.jar).
write config:
SNOWFLAKE_SOURCE_NAME = "net.snowflake.spark.snowflake"
# Set options below
sfOptions = {
"sfURL" : "****",
"sfAccount" : "****", # Also needed create stage privilege.
"sfUser" : username,
"sfPassword" : password,
"sfDatabase" : database,
"sfSchema" : schema,
"sfWarehouse" : warehouse,
"sfRole" : role
}
sparkDF.write \
.format(SNOWFLAKE_SOURCE_NAME) \
.options(**sfOptions) \
.option("dbtable", f"MY_WORKSPACE.{table}") \
.mode('append') \
.save()
How can I synchronize this to achieve data integrity?
from snowflake-jdbc.
@howryu any thoughts?
from snowflake-jdbc.
Related Issues (20)
- 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
- SNOW-1045676: Update getSQLKeywords to match actual reserved keywords in Snowflake HOT 3
- SNOW-1053954: No enum constant net.snowflake.client.jdbc.SnowflakeType.VECTOR HOT 1
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.