@@ -18,7 +18,7 @@ namespace duckdb {
1818
1919static void CreateArrowScan (const string &name, py::object entry, TableFunctionRef &table_function,
2020 vector<unique_ptr<ParsedExpression>> &children, ClientProperties &client_properties,
21- PyArrowObjectType type, DBConfig &config, DatabaseInstance &db) {
21+ PyArrowObjectType type, DatabaseInstance &db) {
2222 shared_ptr<ExternalDependency> external_dependency = make_shared_ptr<ExternalDependency>();
2323 if (type == PyArrowObjectType::MessageReader) {
2424 if (!db.ExtensionIsLoaded (" nanoarrow" )) {
@@ -56,7 +56,7 @@ static void CreateArrowScan(const string &name, py::object entry, TableFunctionR
5656 type = PyArrowObjectType::PyCapsule;
5757 }
5858
59- auto stream_factory = make_uniq<PythonTableArrowArrayStreamFactory>(entry.ptr (), client_properties, config );
59+ auto stream_factory = make_uniq<PythonTableArrowArrayStreamFactory>(entry.ptr (), client_properties);
6060 auto stream_factory_produce = PythonTableArrowArrayStreamFactory::Produce;
6161 auto stream_factory_get_schema = PythonTableArrowArrayStreamFactory::GetSchema;
6262
@@ -113,7 +113,7 @@ unique_ptr<TableRef> PythonReplacementScan::TryReplacementObject(const py::objec
113113 if (PandasDataFrame::IsPyArrowBacked (entry)) {
114114 auto table = PandasDataFrame::ToArrowTable (entry);
115115 CreateArrowScan (name, table, *table_function, children, client_properties, PyArrowObjectType::Table,
116- DBConfig::GetConfig (context), *context.db );
116+ *context.db );
117117 } else {
118118 string name = " df_" + StringUtil::GenerateRandomName ();
119119 auto new_df = PandasScanFunction::PandasReplaceCopiedNames (entry);
@@ -143,17 +143,16 @@ unique_ptr<TableRef> PythonReplacementScan::TryReplacementObject(const py::objec
143143 } else if (PolarsDataFrame::IsDataFrame (entry)) {
144144 auto arrow_dataset = entry.attr (" to_arrow" )();
145145 CreateArrowScan (name, arrow_dataset, *table_function, children, client_properties, PyArrowObjectType::Table,
146- DBConfig::GetConfig (context), *context.db );
146+ *context.db );
147147 } else if (PolarsDataFrame::IsLazyFrame (entry)) {
148148 auto materialized = entry.attr (" collect" )();
149149 auto arrow_dataset = materialized.attr (" to_arrow" )();
150150 CreateArrowScan (name, arrow_dataset, *table_function, children, client_properties, PyArrowObjectType::Table,
151- DBConfig::GetConfig (context), *context.db );
151+ *context.db );
152152 } else if (DuckDBPyConnection::GetArrowType (entry) != PyArrowObjectType::Invalid &&
153153 !(DuckDBPyConnection::GetArrowType (entry) == PyArrowObjectType::MessageReader && !relation)) {
154154 arrow_type = DuckDBPyConnection::GetArrowType (entry);
155- CreateArrowScan (name, entry, *table_function, children, client_properties, arrow_type,
156- DBConfig::GetConfig (context), *context.db );
155+ CreateArrowScan (name, entry, *table_function, children, client_properties, arrow_type, *context.db );
157156 } else if (DuckDBPyConnection::IsAcceptedNumpyObject (entry) != NumpyObjectType::INVALID) {
158157 numpytype = DuckDBPyConnection::IsAcceptedNumpyObject (entry);
159158 string np_name = " np_" + StringUtil::GenerateRandomName ();
0 commit comments