Skip to content

Commit

Permalink
fix the json extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Tishj committed Dec 20, 2024
1 parent 1a55dd4 commit d23ac74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extension/json/json_scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,12 @@ unique_ptr<GlobalTableFunctionState> JSONGlobalTableFunctionState::Init(ClientCo
}

vector<LogicalType> dummy_types(input.column_ids.size(), LogicalType::ANY);
auto local_columns = MultiFileReaderColumnDefinition::ColumnsFromNamesAndTypes(gstate.names, dummy_types);
auto global_columns = MultiFileReaderColumnDefinition::ColumnsFromNamesAndTypes(bind_data.names, dummy_types);
for (auto &reader : gstate.json_readers) {
MultiFileReader().FinalizeBind(reader->GetOptions().file_options, gstate.bind_data.reader_bind,
reader->GetFileName(), gstate.names, dummy_types, bind_data.names,
input.column_indexes, reader->reader_data, context, nullptr);
reader->GetFileName(), local_columns, global_columns, input.column_indexes,
reader->reader_data, context, nullptr);
}

return std::move(result);
Expand Down

0 comments on commit d23ac74

Please sign in to comment.