risingwave_frontend::catalog::system_catalog

Function infer_dummy_view_sql

source
pub fn infer_dummy_view_sql(columns: &[(&'_ str, DataType)]) -> String
Expand description

infer_dummy_view_sql returns a dummy SQL statement for a view with the given columns that returns no rows. For example, with columns a and b, it returns SELECT NULL::integer AS a, NULL::varchar AS b WHERE 1 != 1.