-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Description
Search before asking
- I had searched in the issues and found no similar issues.
Description
We have introduced alias function in #6261.
Current we only support FunctionCallExpr in alias function, support for cast is required in some cases.
Use case
In the case of some database access, there are some special functions that are not supported and can be implemented by cast.
eg:
-- ALL : for any type
CREATE ALIAS FUNCTION decimal(ALL, INT, INT) WITH PARAMETER(col, precision, scale)
AS CAST(col AS decimal(precision, scale));
CREATE ALIAS FUNCTION varchar(all, int) WITH PARAMETER(text, length)
AS cast(text as varchar(length));Related issues
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.