Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[BugFix][LogicalPlanner] Read Catalog from self and default
  • Loading branch information
am357 committed Aug 16, 2023
commit 0d67207fab166d3c388c72bd53f3ab40b7b71d66
3 changes: 1 addition & 2 deletions partiql-logical-planner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ impl<'c> LogicalPlanner<'c> {
parsed: &Parsed,
) -> Result<logical::LogicalPlan<logical::BindingsOp>, AstTransformationError> {
let q = &parsed.ast;
let catalog = PartiqlCatalog::default();
let mut resolver = NameResolver::new(&catalog);
let mut resolver = NameResolver::new(self.catalog);
let registry = resolver.resolve(q)?;
let planner = AstToLogical::new(self.catalog, registry);
planner.lower_query(q)
Expand Down