You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The data type is not compatible with other system, for example spark or PG database #1379
In the datafusion, the result type of some function or expr is unsigned numeric datatype. if we use the evaluation result as the create table as select xxxx, we may get some table with unexpected data type compared with the doc.
I think this should be fine? Being a superset of postgres is still considered being compatible with postgers right? I.e. if users want to get the exact semantic in postgres, they can opt to only use signed numeric numbers as input. The only problem I see is we need to make sure to only return signed values for functions that might return value with different signs compared to the input so we don't return unsigned value with signed input.
I think this ticket is proposing to align datafusion more closely to postgres's types (e.g. produce Int64 instead of UInt64 as the result of a count() aggregate function), which seems like a reasonable improvement to me
@alamb@houqp The superset of the PG is a good point.
So we can just resolve the return value(UInt64 to Int64) which should be signed in some functions.
Please assign this issue to me.
Activity
liukun4515 commentedon Dec 2, 2021
In the datafusion, the result type of some function or expr is unsigned numeric datatype. if we use the evaluation result as the
create table as select xxxx, we may get some table with unexpected data type compared with the doc.@houqp @alamb
houqp commentedon Dec 2, 2021
I think this should be fine? Being a superset of postgres is still considered being compatible with postgers right? I.e. if users want to get the exact semantic in postgres, they can opt to only use signed numeric numbers as input. The only problem I see is we need to make sure to only return signed values for functions that might return value with different signs compared to the input so we don't return unsigned value with signed input.
alamb commentedon Dec 2, 2021
I think this ticket is proposing to align datafusion more closely to postgres's types (e.g. produce
Int64instead ofUInt64as the result of acount()aggregate function), which seems like a reasonable improvement to meI may misunderstand the intent, however
liukun4515 commentedon Dec 3, 2021
@alamb @houqp The superset of the PG is a good point.
So we can just resolve the return value(
UInt64toInt64) which should be signed in some functions.Please assign this issue to me.
liukun4515 commentedon Jul 7, 2022
It was fixed.
feat: override executor overhead memory only when comet unified memor…