fix(mv): keep native source definitions compact

This commit is contained in:
Yang Cen
2026-09-26 15:56:53 +08:00
parent 7c15b738d7
commit 0917eb6ca6
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -313,7 +313,7 @@ pub fn read_staging(metadata: &HashMap<String, String>) -> Result<Option<Staging
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct MaterializedViewDefinition {
/// A table-bound native pair source. It is never evaluated per source row.
pub duplicate_pairs: Option<DuplicatePairsView>,
pub duplicate_pairs: Option<Box<DuplicatePairsView>>,
/// Name of the source table, in the same database as the view.
pub source_table: String,
/// Namespace path holding the source table; empty is the root namespace.
@@ -30,7 +30,7 @@ use crate::table::datafusion::udtf::duplicate_pairs::{
};
use crate::{Error, Result};
pub(crate) const FUNCTION_NAME: &str = "vector_duplicate_pairs";
pub(super) const FUNCTION_NAME: &str = "vector_duplicate_pairs";
/// A native table-function source, pinned for the lifetime of the view.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
+1 -1
View File
@@ -284,7 +284,7 @@ fn extract(query: &Query) -> Result<MaterializedViewDefinition> {
&& index_hints.is_empty() =>
{
let (namespace, table, config) = super::duplicate_pairs::source(args)?;
duplicate_pairs = Some(config);
duplicate_pairs = Some(Box::new(config));
(namespace, table)
}
Some(TableFactor::Table { args: Some(_), .. }) => {