kuzu icon indicating copy to clipboard operation
kuzu copied to clipboard

Bug: Struct casting issues

Open acquamarin opened this issue 5 months ago • 0 comments

Kùzu version

master

What operating system are you using?

MAC M1

What happened?

  1. 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}

  2. 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.

acquamarin avatar Aug 27 '24 05:08 acquamarin