kuzu
kuzu copied to clipboard
Bug: Struct casting issues
Kùzu version
master
What operating system are you using?
MAC M1
What happened?
-
Cast struct type to another struct type doesn't change the field names: Query:
return cast({'a': 12, 'b': 24} as struct(c int64, d int64))
Result:{a: 12, b: 24}
instead of{c: 12, d: 24}
-
Cast struct type to another struct type with compatiable field type still throws exception: Query:
return cast({'a': 12, 'b': 24} as struct(c uint32, d int64))
Error:Conversion exception: Unsupported casting function from STRUCT(a INT64, b INT64) to STRUCT(c UINT32, d INT64).
Are there known steps to reproduce?
As described.