Skip to content

Implement explicit CAST operator #3589

@hatyo

Description

@hatyo

Currently it is not possible to explicitly cast literals and expressions to other types. This makes it difficult or even impossible to present certain literals that align well with the underlying type system for example, currently, it is not possible to project an empty array literal [] because it is not possible to flow unknown types which is fair, but there is no way to cast it to a known type neither:

select [] from t;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions