Skip to content

Commit bac2ff3

Browse files
committed
Update TableDescription constructor and comment out some tpcds errors that are throwing an invalid table filter error
1 parent ff611ba commit bac2ff3

File tree

3 files changed

+19
-24
lines changed

3 files changed

+19
-24
lines changed

duckdb

Submodule duckdb updated 1863 files

src/from_substrait.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,17 +521,14 @@ shared_ptr<Relation> SubstraitToDuckDB::TransformAggregateOp(const substrait::Re
521521
std::move(groups));
522522
}
523523
unique_ptr<TableDescription> TableInfo(ClientContext &context, const string &schema_name, const string &table_name) {
524-
unique_ptr<TableDescription> result;
525524
// obtain the table info
526525
auto table = Catalog::GetEntry<TableCatalogEntry>(context, INVALID_CATALOG, schema_name, table_name,
527526
OnEntryNotFound::RETURN_NULL);
528527
if (!table) {
529528
return {};
530529
}
531530
// write the table info to the result
532-
result = make_uniq<TableDescription>();
533-
result->schema = schema_name;
534-
result->table = table_name;
531+
auto result = make_uniq<TableDescription>(INVALID_CATALOG, schema_name, table_name);
535532
for (auto &column : table->GetColumns().Logical()) {
536533
result->columns.emplace_back(column.Copy());
537534
}

0 commit comments

Comments
 (0)