Comments (4)
@djouallah I see there are two different issues here.
The one initially reported, about "TIMESTAMPTZ"
. To proved a timezone you need to use the Ibis timestamp dtype.
import ibis.expr.datatypes as dt
#then you can do something like
DUNIT = DUNIT.cast({"SETTLEMENTDATE": dt.Timestamp(timezone="UTC")})
The other issue, you are reporting on the second comment might be a bug. What seems to be happening is that at the moment the disk type that we are writing with is backend specific, and there seems to be backend inconsistencies when writing to disk. But the code provided, is not a minimal reproducible example as as it requires downloading some data from the internet. Would you be able to provide a
minimal reproducer (ideally with ibis.memtable()
) so we can track this down.
from ibis.
@ncclementi thanks a lot, it was just me not reading the documentation, problem solved all good thanks for your help
from ibis.
Hi @djouallah thanks for opening this issue.
Can you give us more context on what are you trying to achieve? If possible a minimal reproducible example?
What's the original type of the SETLEMENTDATE
column, and what are you trying to cast it too?
You can create an example using a memtable, this way we can reproduce it and help you out.
import ibis
t = ibis.memtable([{"a": 1}, {"a": 2}])
from ibis.
alright, I am trying ibis for the first time, my approach, load some data, do the transformation and write back to delta table, which works fine except that there is a subtle difference how arrow write timestamp and pyspark, i endup with two data type one with time zone the other not
see example here : AnalysisException: [DELTA_FAILED_TO_MERGE_FIELDS] Failed to merge fields 'SETTLEMENTDATE' and 'SETTLEMENTDATE'
https://colab.research.google.com/drive/18JGPcj3VaJ2tcxDZx1XB7UufTnEPjRfu#scrollTo=51jIBhgTXzrS
from ibis.
Related Issues (20)
- perf(pandas): "pandas via ibis" is 4 times slower than running pandas directly HOT 7
- `Backend.sql()` throws error if db user has only read permissions HOT 1
- feat(selectors): parse Python types in `s.of_type`
- feat: support read_parquet for ms sql backend HOT 1
- refactor: remove `ImpalaTable` subclass HOT 1
- feat: use `ibis.desc()`/`.desc()` with selectors HOT 3
- Support for sharded BigQuery tables HOT 1
- bug(oracle): Ibis assumes that a boolean type exists in the version of oracle being used HOT 1
- feat: allow specify the length of string column HOT 3
- bug: data type inference in timestamp .delta expression
- bug: HOT 3
- Inserting permuted named columns caused data to get saved in the wrong columns HOT 1
- bug: cannot use window expression in filter HOT 2
- perf(duckdb): duckdb backend 10,000x slower than Polars for lagged operations HOT 21
- bug: sql() operation ignores manual cast of columns data type HOT 1
- Poor performance when writing deltalake HOT 9
- Problem of authentication with JWTAuthentication and Trino HOT 1
- bug(api): sorting by tuple keys doesn't seem to work
- bug: mssql does not implement `_from_url()`
- bug: mysql miss `port` when using connection URL
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 ibis.