message: added tests for scanning multiple chunks from a dataframe
diff: @@ -408,6 +408,20 @@ class TestResolveObjectColumns(object):
  assert(conversion == reference)
  + # Test that the column 'offset' is actually used when converting,
  + # and that the same 1024 (STANDARD_VECTOR_SIZE) values are not being scanned over and over again
  + def test_multiple_chunks(self):
  + standard_vector_size = 1024
  +
  + data = []
  + data += [datetime.date(2022, 9, 13) for x in range(standard_vector_size)]
  + data += [datetime.date(2022, 9, 14) for x in range(standard_vector_size)]
  + data += [datetime.date(2022, 9, 15) for x in range(standard_vector_size)]
  + data += [datetime.date(2022, 9, 16) for x in range(standard_vector_size)]
  + x = pd.DataFrame({'dates': pd.Series(data=data, dtype='object')})
  + res = duckdb.query_df(x, "x", "select distinct * from x").df()
  + assert(len(res['dates'].__array__()) == 4)
  +
  def test_mixed_object_types(self):
  x = pd.DataFrame({
  'nested': pd.Series(data=[{'a': 1, 'b': 2}, [5, 4, 3], {'key': [1,2,3], 'value': ['a', 'b', 'c']}], dtype='object'),
  