Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
goodwanghan authored Jun 12, 2024
1 parent 370025e commit de00706
Show file tree
Hide file tree
Showing 3 changed files with 2,871 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/fugue_duckdb/test_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class DuckDataFrameTests(DataFrameTests.Tests):
def df(self, data: Any = None, schema: Any = None) -> DuckDataFrame:
df = ArrowDataFrame(data, schema)
return DuckDataFrame(duckdb.from_arrow(df.native, self.context.session))
return DuckDataFrame(duckdb.from_arrow(df.native, connection=self.context.session))

def test_as_array_special_values(self):
for func in [
Expand Down Expand Up @@ -69,7 +69,7 @@ def test_duck_as_local(self):
class NativeDuckDataFrameTests(DataFrameTests.NativeTests):
def df(self, data: Any = None, schema: Any = None) -> DuckDataFrame:
df = ArrowDataFrame(data, schema)
return DuckDataFrame(duckdb.from_arrow(df.native, self.context.session)).native
return DuckDataFrame(duckdb.from_arrow(df.native, connection=self.context.session)).native

def to_native_df(self, pdf: pd.DataFrame) -> Any:
return duckdb.from_df(pdf)
Expand Down
2 changes: 1 addition & 1 deletion tests/fugue_duckdb/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_type_conversion(backend_context):

def assert_(tp):
dt = duckdb.from_arrow(
pa.Table.from_pydict(dict(a=pa.nulls(2, tp))), con
pa.Table.from_pydict(dict(a=pa.nulls(2, tp))), connection=con
).types[0]
assert to_pa_type(dt) == tp
dt = to_duck_type(tp)
Expand Down
Loading

0 comments on commit de00706

Please sign in to comment.