mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-01 13:45:53 +00:00
It is useful to have a data_type in *_constructor structs when evaluating. The resulting constant has a data_type, so we have to find it somehow. For tuple_constructor we don't have to create a separate tuple_type_impl instance. For collection_constructor we know what the type is even in case of an empty collection. For usertype_constructor we know the name, type and order of fields in the user type. Additionally without a data_type we wouldn't know whether the type is reversed or not. Signed-off-by: Jan Ciolek <jan.ciolek@scylladb.com>