Skip to content

Commit

Permalink
add datetime field
Browse files Browse the repository at this point in the history
  • Loading branch information
aersam committed Mar 13, 2024
1 parent 91ff255 commit dbbb3e8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_polars_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import pytest
from polars.testing import assert_frame_equal
from deltalake2db import polars_scan_delta
from datetime import datetime


@pytest.fixture()
Expand All @@ -21,6 +22,17 @@ def data_batch_1():
201008,
201009,
],
"datetime": [
datetime.fromisoformat("2010-01-01"),
datetime.fromisoformat("2010-02-01"),
datetime.fromisoformat("2010-03-01"),
datetime.fromisoformat("2010-04-01"),
datetime.fromisoformat("2010-05-01"),
datetime.fromisoformat("2010-06-01"),
datetime.fromisoformat("2010-07-01"),
datetime.fromisoformat("2010-08-01"),
datetime.fromisoformat("2010-09-01"),
],
"static_part": ["A", "A", "A", "B", "B", "B", "C", "C", "C"],
}
)
Expand Down

0 comments on commit dbbb3e8

Please sign in to comment.