In the create view statement, the database actually saves a SQL string. In the previous implementation of nereids create view, the database name qualifier was not added to the UDF function used in SQL. This will cause errors when switching the database to use view. This pr adds database restrictions to udf. For example:
select udf_function(a)
will be converted to
select `db`.`udf_function`(a)
At the same time, this PR also adds backquote to column and alias.
In the create view statement, the database actually saves a SQL string. In the previous implementation of nereids create view, the database name qualifier was not added to the UDF function used in SQL. This will cause errors when switching the database to use view. This pr adds database restrictions to udf. For example:
will be converted to
At the same time, this PR also adds backquote to column and alias.