Open maciejskorski opened 1 year ago
@maciejskorski what happens if you pass the struct as json string representation?
@maciejskorski what happens if you pass the struct as json string representation?
@ion-elgreco I tried but it complains about SQL incompatibility. Per my research - may not be up to date what I found - the syntax must be SQL in Data Fusion's dialect.
I've been debugging this but can't figure out what's happening. Looks like it's parsing struct(1,2)
correctly (it seems to be using a Big Query sintax but that should not matter) and then this mysterious error ValueError: arguments need to have the same data type
comes up - I can find it in any base code, including Arrow (or even Google 😄 ) .
I tried different options with explicit schema and nullable settings - the same thing. Syntax like STRUCT<a bigint, b bigint>
, STRUCT(1 as a, 2 as b)
, etc are not accepted, probably by Data Fusion.
Environment
Delta-rs version:
0.13.0
Binding:
Python
Environment:
Bug
What happened:
It's unclear how to update datatypes, and if this is supported at all. Looking into the DataFussion engine I would expect this syntax to work, but can't make it 😞
What you expected to happen:
Update the type.
How to reproduce it:
More details: