Comments (5)
Yes that's intended:
if (type.id() == LogicalTypeId::TIMESTAMP_TZ) {
// We have to add the timezone info
auto tz_utc = import_cache.pytz.timezone()("UTC");
auto timestamp_utc = tz_utc.attr("localize")(py_timestamp);
auto tz_info = import_cache.pytz.timezone()(client_properties.time_zone);
return timestamp_utc.attr("astimezone")(tz_info);
}
We need pytz to be able to convert the value to the right python type
from duckdb.
Sorry, I meant "It's intended not being included in the package?"
Taking in count that duckdb is suppose to be light, this would make sense but I wasn't sure.
from duckdb.
Yes that's intended, we don't include dependencies in the package
You could circumvent this issue by casting the TIMESTAMPTZ column to VARCHAR, or TIMESTAMP if you prefer not to install pytz
from duckdb.
Yes that's intended, we don't include dependencies in the package You could circumvent this issue by casting the TIMESTAMPTZ column to VARCHAR, or TIMESTAMP if you prefer not to install
pytz
No problem at all, I can totally install pytz.
For some reason I though that datetime conversion would be standard and was not expecting an error.
As this is expected, I'm closing this.
from duckdb.
@Tishj what's the reason for not specifying dependencies, if I may ask? Users that don't want dependencies to be installed can already use --no-deps
in pip or equivalent options elsewhere. Alternatively, you could provide a duckdb[full]
installation option for users to opt into dependencies.
from duckdb.
Related Issues (20)
- IN/OR operator removes completely Parquet Filter Pushdown on other filters HOT 2
- Exporting to Pandas has incorrect column type for BOOLEAN and BIGINT when some entries are NA/NULL HOT 4
- hive_partitioning=True can interpret empty string values in directory as NULL
- Race condition in parallel installations of extensions HOT 1
- `DuckDBPyRelation.intersect()` (Python function API) implicitly performs `.distinct()` operation (i.e. deduplicates for set semantics)
- CSV reader: combination of null_padding = true and parallel = false introduces extra row
- DuckDB lag seems to be much slower than Polars HOT 9
- Binder error when using 'split_part' and reading from stdin
- Python API suggests increasing maximum_object_size when read_json but it's unclear how to do that
- motherduck pivot Invalid Error: PendingQuery can only take a single statement erro HOT 2
- Parquet read : Invalid decimal encoding in Parquet file HOT 2
- DuckDB Build Failure in Alpine Linux Docker Image (host: mac M1) HOT 4
- v1.0.0 jdbc connector: TransactionContext Error on DBeaver
- Incorrect results returned when using JOIN statement HOT 3
- performance of lateral join on timestamp fields
- current_timestamp cannot be used in having clause (Binder Error) HOT 1
- PIVOT should have syntax to GROUP BY no columns
- build error: jemalloc fails due to strerror_r returning char* instead of int HOT 1
- `clang_format` doesn't support Apple Silicon so format-fix doesn't run HOT 2
- Using GROUP BY ALL with a window function causes "Binder Error: Cannot mix aggregates with non-aggregated columns!" 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.