-
Notifications
You must be signed in to change notification settings - Fork 102
Casting Rules
andyfeng edited this page Apr 6, 2022
·
2 revisions
Our system defines two types of casting named explicit cast and implicit cast.
Explicit casts are function calls from user input, e.g. string(), date() ...
Implicit casts are added internally and are usually used to reduce codes for better maintainability. The rules for implicit casts are as follows
- If a function is not overload (e.g. AND, CONTAINS), we cast from unstructured to corresponding structured type
- If a function is overload (e.g. ADD), and at least one of the parameter is unstructured, we cast structured type to unstructured type.
Note: implicit casting between structured type is not supported.
- Coding Style
- Casting Rules
- Frontend
- Processor
- Storage
- Test