Comments (2)
I'm able to reproduce the issue as well on Databricks + Azure Data Lake Storage Gen2 storage mounted to /mnt/REDACTED.
from duckdb.
related to the same problem:
I've created a DB file on databricks, using the databricks file system, and then i've copied the file inside Azure BLOB Storage.
then, i've tried to connect using a new duckdb BOTH on my local PC and on Databricks, as follows:
# connecting to the COPIED file inside AZURE, NOT IN LOCAL SYSTEM
ddb3 = duckdb.connect(f"{AZ_BLOB_PATH}/mydb.duckdb", read_only=True)
ddb3.execute("PRAGMA disable_progress_bar;")
ddb3.execute("PRAGMA enable_optimizer;")
ddb3.execute("PRAGMA enable_object_cache;")
ddb3.execute(f"""SET GLOBAL temp_directory = '/local_disk0';""")
ddb3.execute("SET errors_as_json = true;")
once i have this ddb3 connection, i've tried to query a table like:
ddb3.sql("select * from persistent_table where col1= 'code1' and col2='2024-04-20'")
but the query hangs, i've waited for over 15 minutes without any results.
if i run the SAME QUERY, ON THE SAME FILE, inside databricks file system ("/local_disk0/mydb.duckdb")
example of connection:
# connecting to the COPIED file inside LOCAL SYSTEM
ddb2 = duckdb.connect(f"/local_disk0/mydb.duckdb", read_only=True)
ddb2.execute("PRAGMA disable_progress_bar;")
ddb2.execute("PRAGMA enable_optimizer;")
ddb2.execute("PRAGMA enable_object_cache;")
ddb2.execute(f"""SET GLOBAL temp_directory = '/local_disk0';""")
ddb2.execute("SET errors_as_json = true;")
the query runs perfectly fine, in less than a second.
I would love to give more details on How it hangs, but i don't have in depth skills regarding lower level APIs and connections.
from duckdb.
Related Issues (20)
- python read_csv prepared statement requires numpy, non-prepared statement doesn't.
- Clearing fsspec filesystem caches segfaults Python runtime
- Default quote char must be "
- Container Overflow when calling DuckDB constructor HOT 3
- JSON_GROUP_STRUCTURE is now (incorrectly?) case sensitive HOT 2
- Partitioned CSV writes with gzip do not add `.csv.gz` extension and fail to read back in with `read_csv_auto`
- Quarter doesn't work as interval in window functions HOT 2
- `MAX_BY` and `MIN_BY` return wrong results when using old_implicit_casting HOT 20
- ifnull returns an error when chained (nullif works) HOT 2
- Upsert complains about lack of constrains despite the fact they are present HOT 4
- 'Duplicate key' error when update column with list data type and table has a primary key HOT 2
- Compilation warnings in re2 with `-Wpedantic` HOT 10
- Running simple `SELECT` over S3 attached DuckDB db segfaults HOT 3
- Wrong comparison for timestamp depending on if it's in a subquery or not HOT 2
- PIVOT does not support geomean as aggregation function HOT 2
- error when inserting duped values into primary column with many values HOT 1
- `CAST( 'yes' AS BOOLEAN)` fails HOT 3
- No facility to parse formatted Number Strings to Numeric/Double/Decimal HOT 2
- MemoryError: std::bad_alloc HOT 4
- `Round()` and `Round_Even()` return different type 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 duckdb.