mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-30 07:26:56 +00:00
fix: SQL insertion and column default constraint aware of timezone (#3266)
* fix: missing timezone when parsing sql value to greptimedb value * test: sql_value_to_value * fix: column default constraint missing timezone * test: column def default constraint with timezone * test: adds sqlness test for default constraint aware of timezone * fix: typo * chore: comment
This commit is contained in:
@@ -22,6 +22,7 @@ use api::v1::{
|
||||
};
|
||||
use common_error::ext::BoxedError;
|
||||
use common_grpc_expr::util::ColumnExpr;
|
||||
use common_time::Timezone;
|
||||
use datatypes::schema::{ColumnSchema, COMMENT_KEY};
|
||||
use file_engine::FileOptions;
|
||||
use query::sql::{
|
||||
@@ -122,7 +123,7 @@ pub(crate) async fn create_external_expr(
|
||||
query_ctx: QueryContextRef,
|
||||
) -> Result<CreateTableExpr> {
|
||||
let (catalog_name, schema_name, table_name) =
|
||||
table_idents_to_full_name(&create.name, query_ctx)
|
||||
table_idents_to_full_name(&create.name, &query_ctx)
|
||||
.map_err(BoxedError::new)
|
||||
.context(ExternalSnafu)?;
|
||||
|
||||
@@ -141,7 +142,8 @@ pub(crate) async fn create_external_expr(
|
||||
// expanded form
|
||||
let time_index = find_time_index(&create.constraints)?;
|
||||
let primary_keys = find_primary_keys(&create.columns, &create.constraints)?;
|
||||
let column_schemas = columns_to_column_schemas(&create.columns, &time_index)?;
|
||||
let column_schemas =
|
||||
columns_to_column_schemas(&create.columns, &time_index, Some(&query_ctx.timezone()))?;
|
||||
(time_index, primary_keys, column_schemas)
|
||||
} else {
|
||||
// inferred form
|
||||
@@ -182,7 +184,7 @@ pub(crate) async fn create_external_expr(
|
||||
/// Convert `CreateTable` statement to `CreateExpr` gRPC request.
|
||||
pub fn create_to_expr(create: &CreateTable, query_ctx: QueryContextRef) -> Result<CreateTableExpr> {
|
||||
let (catalog_name, schema_name, table_name) =
|
||||
table_idents_to_full_name(&create.name, query_ctx)
|
||||
table_idents_to_full_name(&create.name, &query_ctx)
|
||||
.map_err(BoxedError::new)
|
||||
.context(ExternalSnafu)?;
|
||||
|
||||
@@ -199,7 +201,12 @@ pub fn create_to_expr(create: &CreateTable, query_ctx: QueryContextRef) -> Resul
|
||||
schema_name,
|
||||
table_name,
|
||||
desc: String::default(),
|
||||
column_defs: columns_to_expr(&create.columns, &time_index, &primary_keys)?,
|
||||
column_defs: columns_to_expr(
|
||||
&create.columns,
|
||||
&time_index,
|
||||
&primary_keys,
|
||||
Some(&query_ctx.timezone()),
|
||||
)?,
|
||||
time_index,
|
||||
primary_keys,
|
||||
create_if_not_exists: create.if_not_exists,
|
||||
@@ -293,18 +300,23 @@ fn columns_to_expr(
|
||||
column_defs: &[ColumnDef],
|
||||
time_index: &str,
|
||||
primary_keys: &[String],
|
||||
timezone: Option<&Timezone>,
|
||||
) -> Result<Vec<api::v1::ColumnDef>> {
|
||||
let column_schemas = columns_to_column_schemas(column_defs, time_index)?;
|
||||
let column_schemas = columns_to_column_schemas(column_defs, time_index, timezone)?;
|
||||
column_schemas_to_defs(column_schemas, primary_keys)
|
||||
}
|
||||
|
||||
fn columns_to_column_schemas(
|
||||
column_defs: &[ColumnDef],
|
||||
time_index: &str,
|
||||
timezone: Option<&Timezone>,
|
||||
) -> Result<Vec<ColumnSchema>> {
|
||||
column_defs
|
||||
.iter()
|
||||
.map(|c| column_def_to_schema(c, c.name.to_string() == time_index).context(ParseSqlSnafu))
|
||||
.map(|c| {
|
||||
column_def_to_schema(c, c.name.to_string() == time_index, timezone)
|
||||
.context(ParseSqlSnafu)
|
||||
})
|
||||
.collect::<Result<Vec<ColumnSchema>>>()
|
||||
}
|
||||
|
||||
@@ -365,7 +377,7 @@ pub(crate) fn to_alter_expr(
|
||||
query_ctx: QueryContextRef,
|
||||
) -> Result<AlterExpr> {
|
||||
let (catalog_name, schema_name, table_name) =
|
||||
table_idents_to_full_name(alter_table.table_name(), query_ctx)
|
||||
table_idents_to_full_name(alter_table.table_name(), &query_ctx)
|
||||
.map_err(BoxedError::new)
|
||||
.context(ExternalSnafu)?;
|
||||
|
||||
@@ -382,7 +394,7 @@ pub(crate) fn to_alter_expr(
|
||||
} => Kind::AddColumns(AddColumns {
|
||||
add_columns: vec![AddColumn {
|
||||
column_def: Some(
|
||||
sql_column_def_to_grpc_column_def(column_def)
|
||||
sql_column_def_to_grpc_column_def(column_def, Some(&query_ctx.timezone()))
|
||||
.map_err(BoxedError::new)
|
||||
.context(ExternalSnafu)?,
|
||||
),
|
||||
@@ -409,10 +421,12 @@ pub(crate) fn to_alter_expr(
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use session::context::QueryContext;
|
||||
use datatypes::value::Value;
|
||||
use session::context::{QueryContext, QueryContextBuilder};
|
||||
use sql::dialect::GreptimeDbDialect;
|
||||
use sql::parser::{ParseOptions, ParserContext};
|
||||
use sql::statements::statement::Statement;
|
||||
use store_api::storage::ColumnDefaultConstraint;
|
||||
|
||||
use super::*;
|
||||
|
||||
@@ -435,4 +449,100 @@ mod tests {
|
||||
expr.table_options.get("write_buffer_size").unwrap()
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_create_to_expr_with_default_timestamp_value() {
|
||||
let sql = "CREATE TABLE monitor (v double,ts TIMESTAMP default '2024-01-30T00:01:01',TIME INDEX (ts)) engine=mito;";
|
||||
let stmt =
|
||||
ParserContext::create_with_dialect(sql, &GreptimeDbDialect {}, ParseOptions::default())
|
||||
.unwrap()
|
||||
.pop()
|
||||
.unwrap();
|
||||
|
||||
let Statement::CreateTable(create_table) = stmt else {
|
||||
unreachable!()
|
||||
};
|
||||
|
||||
// query context with system timezone UTC.
|
||||
let expr = create_to_expr(&create_table, QueryContext::arc()).unwrap();
|
||||
let ts_column = &expr.column_defs[1];
|
||||
let constraint = assert_ts_column(ts_column);
|
||||
assert!(
|
||||
matches!(constraint, ColumnDefaultConstraint::Value(Value::Timestamp(ts))
|
||||
if ts.to_iso8601_string() == "2024-01-30 00:01:01+0000")
|
||||
);
|
||||
|
||||
// query context with timezone `+08:00`
|
||||
let ctx = QueryContextBuilder::default()
|
||||
.timezone(Timezone::from_tz_string("+08:00").unwrap().into())
|
||||
.build();
|
||||
let expr = create_to_expr(&create_table, ctx).unwrap();
|
||||
let ts_column = &expr.column_defs[1];
|
||||
let constraint = assert_ts_column(ts_column);
|
||||
assert!(
|
||||
matches!(constraint, ColumnDefaultConstraint::Value(Value::Timestamp(ts))
|
||||
if ts.to_iso8601_string() == "2024-01-29 16:01:01+0000")
|
||||
);
|
||||
}
|
||||
|
||||
fn assert_ts_column(ts_column: &api::v1::ColumnDef) -> ColumnDefaultConstraint {
|
||||
assert_eq!("ts", ts_column.name);
|
||||
assert_eq!(
|
||||
ColumnDataType::TimestampMillisecond as i32,
|
||||
ts_column.data_type
|
||||
);
|
||||
assert!(!ts_column.default_constraint.is_empty());
|
||||
|
||||
ColumnDefaultConstraint::try_from(&ts_column.default_constraint[..]).unwrap()
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_to_alter_expr() {
|
||||
let sql = "ALTER TABLE monitor add column ts TIMESTAMP default '2024-01-30T00:01:01';";
|
||||
let stmt =
|
||||
ParserContext::create_with_dialect(sql, &GreptimeDbDialect {}, ParseOptions::default())
|
||||
.unwrap()
|
||||
.pop()
|
||||
.unwrap();
|
||||
|
||||
let Statement::Alter(alter_table) = stmt else {
|
||||
unreachable!()
|
||||
};
|
||||
|
||||
// query context with system timezone UTC.
|
||||
let expr = to_alter_expr(alter_table.clone(), QueryContext::arc()).unwrap();
|
||||
let kind = expr.kind.unwrap();
|
||||
|
||||
let Kind::AddColumns(AddColumns { add_columns, .. }) = kind else {
|
||||
unreachable!()
|
||||
};
|
||||
|
||||
assert_eq!(1, add_columns.len());
|
||||
let ts_column = add_columns[0].column_def.clone().unwrap();
|
||||
let constraint = assert_ts_column(&ts_column);
|
||||
assert!(
|
||||
matches!(constraint, ColumnDefaultConstraint::Value(Value::Timestamp(ts))
|
||||
if ts.to_iso8601_string() == "2024-01-30 00:01:01+0000")
|
||||
);
|
||||
|
||||
//
|
||||
// query context with timezone `+08:00`
|
||||
let ctx = QueryContextBuilder::default()
|
||||
.timezone(Timezone::from_tz_string("+08:00").unwrap().into())
|
||||
.build();
|
||||
let expr = to_alter_expr(alter_table, ctx).unwrap();
|
||||
let kind = expr.kind.unwrap();
|
||||
|
||||
let Kind::AddColumns(AddColumns { add_columns, .. }) = kind else {
|
||||
unreachable!()
|
||||
};
|
||||
|
||||
assert_eq!(1, add_columns.len());
|
||||
let ts_column = add_columns[0].column_def.clone().unwrap();
|
||||
let constraint = assert_ts_column(&ts_column);
|
||||
assert!(
|
||||
matches!(constraint, ColumnDefaultConstraint::Value(Value::Timestamp(ts))
|
||||
if ts.to_iso8601_string() == "2024-01-29 16:01:01+0000")
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ impl Inserter {
|
||||
) -> Result<Output> {
|
||||
let inserts =
|
||||
StatementToRegion::new(self.catalog_manager.as_ref(), &self.partition_manager, ctx)
|
||||
.convert(insert)
|
||||
.convert(insert, ctx)
|
||||
.await?;
|
||||
|
||||
let affected_rows = self.do_request(inserts, ctx).await?;
|
||||
@@ -334,7 +334,7 @@ impl Inserter {
|
||||
|
||||
// create physical table
|
||||
let res = statement_executor
|
||||
.create_table_inner(create_table_expr, None)
|
||||
.create_table_inner(create_table_expr, None, ctx)
|
||||
.await;
|
||||
|
||||
match res {
|
||||
@@ -431,7 +431,7 @@ impl Inserter {
|
||||
|
||||
// TODO(weny): multiple regions table.
|
||||
let res = statement_executor
|
||||
.create_table_inner(create_table_expr, None)
|
||||
.create_table_inner(create_table_expr, None, ctx)
|
||||
.await;
|
||||
|
||||
match res {
|
||||
|
||||
@@ -16,9 +16,10 @@ use api::helper::{value_to_grpc_value, ColumnDataTypeWrapper};
|
||||
use api::v1::region::InsertRequests as RegionInsertRequests;
|
||||
use api::v1::{ColumnSchema as GrpcColumnSchema, Row, Rows, Value as GrpcValue};
|
||||
use catalog::CatalogManager;
|
||||
use common_time::Timezone;
|
||||
use datatypes::schema::{ColumnSchema, SchemaRef};
|
||||
use partition::manager::PartitionRuleManager;
|
||||
use session::context::QueryContext;
|
||||
use session::context::{QueryContext, QueryContextRef};
|
||||
use snafu::{ensure, OptionExt, ResultExt};
|
||||
use sql::statements;
|
||||
use sql::statements::insert::Insert;
|
||||
@@ -54,7 +55,11 @@ impl<'a> StatementToRegion<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn convert(&self, stmt: &Insert) -> Result<RegionInsertRequests> {
|
||||
pub async fn convert(
|
||||
&self,
|
||||
stmt: &Insert,
|
||||
query_ctx: &QueryContextRef,
|
||||
) -> Result<RegionInsertRequests> {
|
||||
let (catalog, schema, table_name) = self.get_full_name(stmt.table_name())?;
|
||||
let table = self.get_table(&catalog, &schema, &table_name).await?;
|
||||
let table_schema = table.schema();
|
||||
@@ -110,7 +115,11 @@ impl<'a> StatementToRegion<'a> {
|
||||
schema.push(grpc_column_schema);
|
||||
|
||||
for (sql_row, grpc_row) in sql_rows.iter().zip(rows.iter_mut()) {
|
||||
let value = sql_value_to_grpc_value(column_schema, &sql_row[i])?;
|
||||
let value = sql_value_to_grpc_value(
|
||||
column_schema,
|
||||
&sql_row[i],
|
||||
Some(&query_ctx.timezone()),
|
||||
)?;
|
||||
grpc_row.values.push(value);
|
||||
}
|
||||
}
|
||||
@@ -169,7 +178,11 @@ fn column_names<'a>(stmt: &'a Insert, table_schema: &'a SchemaRef) -> Vec<&'a St
|
||||
}
|
||||
}
|
||||
|
||||
fn sql_value_to_grpc_value(column_schema: &ColumnSchema, sql_val: &SqlValue) -> Result<GrpcValue> {
|
||||
fn sql_value_to_grpc_value(
|
||||
column_schema: &ColumnSchema,
|
||||
sql_val: &SqlValue,
|
||||
timezone: Option<&Timezone>,
|
||||
) -> Result<GrpcValue> {
|
||||
let column = &column_schema.name;
|
||||
let value = if replace_default(sql_val) {
|
||||
let default_value = column_schema
|
||||
@@ -182,7 +195,7 @@ fn sql_value_to_grpc_value(column_schema: &ColumnSchema, sql_val: &SqlValue) ->
|
||||
column: column.clone(),
|
||||
})?
|
||||
} else {
|
||||
statements::sql_value_to_value(column, &column_schema.data_type, sql_val)
|
||||
statements::sql_value_to_value(column, &column_schema.data_type, sql_val, timezone)
|
||||
.context(ParseSqlSnafu)?
|
||||
};
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ impl StatementExecutor {
|
||||
Statement::Alter(alter_table) => self.alter_table(alter_table, query_ctx).await,
|
||||
Statement::DropTable(stmt) => {
|
||||
let (catalog, schema, table) =
|
||||
table_idents_to_full_name(stmt.table_name(), query_ctx)
|
||||
table_idents_to_full_name(stmt.table_name(), &query_ctx)
|
||||
.map_err(BoxedError::new)
|
||||
.context(error::ExternalSnafu)?;
|
||||
let table_name = TableName::new(catalog, schema, table);
|
||||
@@ -168,7 +168,7 @@ impl StatementExecutor {
|
||||
}
|
||||
Statement::TruncateTable(stmt) => {
|
||||
let (catalog, schema, table) =
|
||||
table_idents_to_full_name(stmt.table_name(), query_ctx)
|
||||
table_idents_to_full_name(stmt.table_name(), &query_ctx)
|
||||
.map_err(BoxedError::new)
|
||||
.context(error::ExternalSnafu)?;
|
||||
let table_name = TableName::new(catalog, schema, table);
|
||||
@@ -186,7 +186,7 @@ impl StatementExecutor {
|
||||
|
||||
Statement::ShowCreateTable(show) => {
|
||||
let (catalog, schema, table) =
|
||||
table_idents_to_full_name(&show.table_name, query_ctx.clone())
|
||||
table_idents_to_full_name(&show.table_name, &query_ctx)
|
||||
.map_err(BoxedError::new)
|
||||
.context(error::ExternalSnafu)?;
|
||||
|
||||
@@ -298,9 +298,10 @@ fn to_copy_table_request(stmt: CopyTable, query_ctx: QueryContextRef) -> Result<
|
||||
CopyTable::To(arg) => arg,
|
||||
CopyTable::From(arg) => arg,
|
||||
};
|
||||
let (catalog_name, schema_name, table_name) = table_idents_to_full_name(&table_name, query_ctx)
|
||||
.map_err(BoxedError::new)
|
||||
.context(ExternalSnafu)?;
|
||||
let (catalog_name, schema_name, table_name) =
|
||||
table_idents_to_full_name(&table_name, &query_ctx)
|
||||
.map_err(BoxedError::new)
|
||||
.context(ExternalSnafu)?;
|
||||
|
||||
let pattern = with
|
||||
.get(common_datasource::file_format::FILE_PATTERN)
|
||||
|
||||
@@ -69,8 +69,9 @@ impl StatementExecutor {
|
||||
|
||||
#[tracing::instrument(skip_all)]
|
||||
pub async fn create_table(&self, stmt: CreateTable, ctx: QueryContextRef) -> Result<TableRef> {
|
||||
let create_expr = &mut expr_factory::create_to_expr(&stmt, ctx)?;
|
||||
self.create_table_inner(create_expr, stmt.partitions).await
|
||||
let create_expr = &mut expr_factory::create_to_expr(&stmt, ctx.clone())?;
|
||||
self.create_table_inner(create_expr, stmt.partitions, &ctx)
|
||||
.await
|
||||
}
|
||||
|
||||
#[tracing::instrument(skip_all)]
|
||||
@@ -79,14 +80,15 @@ impl StatementExecutor {
|
||||
create_expr: CreateExternalTable,
|
||||
ctx: QueryContextRef,
|
||||
) -> Result<TableRef> {
|
||||
let create_expr = &mut expr_factory::create_external_expr(create_expr, ctx).await?;
|
||||
self.create_table_inner(create_expr, None).await
|
||||
let create_expr = &mut expr_factory::create_external_expr(create_expr, ctx.clone()).await?;
|
||||
self.create_table_inner(create_expr, None, &ctx).await
|
||||
}
|
||||
|
||||
pub async fn create_table_inner(
|
||||
&self,
|
||||
create_table: &mut CreateTableExpr,
|
||||
partitions: Option<Partitions>,
|
||||
query_ctx: &QueryContextRef,
|
||||
) -> Result<TableRef> {
|
||||
let _timer = crate::metrics::DIST_CREATE_TABLE.start_timer();
|
||||
let schema = self
|
||||
@@ -144,7 +146,7 @@ impl StatementExecutor {
|
||||
&create_table.table_name,
|
||||
);
|
||||
|
||||
let (partitions, partition_cols) = parse_partitions(create_table, partitions)?;
|
||||
let (partitions, partition_cols) = parse_partitions(create_table, partitions, query_ctx)?;
|
||||
|
||||
validate_partition_columns(create_table, &partition_cols)?;
|
||||
|
||||
@@ -565,11 +567,13 @@ fn validate_partition_columns(
|
||||
fn parse_partitions(
|
||||
create_table: &CreateTableExpr,
|
||||
partitions: Option<Partitions>,
|
||||
query_ctx: &QueryContextRef,
|
||||
) -> Result<(Vec<MetaPartition>, Vec<String>)> {
|
||||
// If partitions are not defined by user, use the timestamp column (which has to be existed) as
|
||||
// the partition column, and create only one partition.
|
||||
let partition_columns = find_partition_columns(&partitions)?;
|
||||
let partition_entries = find_partition_entries(create_table, &partitions, &partition_columns)?;
|
||||
let partition_entries =
|
||||
find_partition_entries(create_table, &partitions, &partition_columns, query_ctx)?;
|
||||
|
||||
Ok((
|
||||
partition_entries
|
||||
@@ -686,6 +690,7 @@ fn find_partition_entries(
|
||||
create_table: &CreateTableExpr,
|
||||
partitions: &Option<Partitions>,
|
||||
partition_columns: &[String],
|
||||
query_ctx: &QueryContextRef,
|
||||
) -> Result<Vec<Vec<PartitionBound>>> {
|
||||
let entries = if let Some(partitions) = partitions {
|
||||
let column_defs = partition_columns
|
||||
@@ -718,7 +723,8 @@ fn find_partition_entries(
|
||||
let v = match v {
|
||||
SqlValue::Number(n, _) if n == MAXVALUE => PartitionBound::MaxValue,
|
||||
_ => PartitionBound::Value(
|
||||
sql_value_to_value(column_name, data_type, v).context(ParseSqlSnafu)?,
|
||||
sql_value_to_value(column_name, data_type, v, Some(&query_ctx.timezone()))
|
||||
.context(ParseSqlSnafu)?,
|
||||
),
|
||||
};
|
||||
values.push(v);
|
||||
@@ -739,7 +745,7 @@ fn merge_options(mut table_opts: TableOptions, schema_opts: SchemaNameValue) ->
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use session::context::QueryContext;
|
||||
use session::context::{QueryContext, QueryContextBuilder};
|
||||
use sql::dialect::GreptimeDbDialect;
|
||||
use sql::parser::{ParseOptions, ParserContext};
|
||||
use sql::statements::statement::Statement;
|
||||
@@ -806,6 +812,7 @@ ENGINE=mito",
|
||||
r#"[{"column_list":["b","a"],"value_list":["{\"Value\":{\"String\":\"hz\"}}","{\"Value\":{\"Int32\":10}}"]},{"column_list":["b","a"],"value_list":["{\"Value\":{\"String\":\"sh\"}}","{\"Value\":{\"Int32\":20}}"]},{"column_list":["b","a"],"value_list":["\"MaxValue\"","\"MaxValue\""]}]"#,
|
||||
),
|
||||
];
|
||||
let ctx = QueryContextBuilder::default().build();
|
||||
for (sql, expected) in cases {
|
||||
let result = ParserContext::create_with_dialect(
|
||||
sql,
|
||||
@@ -816,7 +823,8 @@ ENGINE=mito",
|
||||
match &result[0] {
|
||||
Statement::CreateTable(c) => {
|
||||
let expr = expr_factory::create_to_expr(c, QueryContext::arc()).unwrap();
|
||||
let (partitions, _) = parse_partitions(&expr, c.partitions.clone()).unwrap();
|
||||
let (partitions, _) =
|
||||
parse_partitions(&expr, c.partitions.clone(), &ctx).unwrap();
|
||||
let json = serde_json::to_string(&partitions).unwrap();
|
||||
assert_eq!(json, expected);
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ impl StatementExecutor {
|
||||
stmt: DescribeTable,
|
||||
query_ctx: QueryContextRef,
|
||||
) -> Result<Output> {
|
||||
let (catalog, schema, table) = table_idents_to_full_name(stmt.name(), query_ctx)
|
||||
let (catalog, schema, table) = table_idents_to_full_name(stmt.name(), &query_ctx)
|
||||
.map_err(BoxedError::new)
|
||||
.context(ExternalSnafu)?;
|
||||
|
||||
|
||||
@@ -31,16 +31,16 @@ use crate::insert::InserterRef;
|
||||
/// Converts maybe fully-qualified table name (`<catalog>.<schema>.<table>`) to tuple.
|
||||
pub fn table_idents_to_full_name(
|
||||
obj_name: &ObjectName,
|
||||
query_ctx: QueryContextRef,
|
||||
query_ctx: &QueryContextRef,
|
||||
) -> Result<(String, String, String)> {
|
||||
match &obj_name.0[..] {
|
||||
[table] => Ok((
|
||||
query_ctx.current_catalog().to_owned(),
|
||||
query_ctx.current_schema().to_owned(),
|
||||
query_ctx.current_catalog().to_string(),
|
||||
query_ctx.current_schema().to_string(),
|
||||
table.value.clone(),
|
||||
)),
|
||||
[schema, table] => Ok((
|
||||
query_ctx.current_catalog().to_owned(),
|
||||
query_ctx.current_catalog().to_string(),
|
||||
schema.value.clone(),
|
||||
table.value.clone(),
|
||||
)),
|
||||
|
||||
Reference in New Issue
Block a user