Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add casts and string to datetime conversion #27

Merged
merged 25 commits into from
Oct 1, 2024
Merged

Add casts and string to datetime conversion #27

merged 25 commits into from
Oct 1, 2024

Commits on Sep 27, 2024

  1. add round in polars

    finn-rudolph committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    1f9dbaf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4992c69 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d3f63b7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    70e94f8 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2024

  1. add cast

    finn-rudolph committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    34e2ab7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ac1a25 View commit details
    Browse the repository at this point in the history
  3. test string to int cast

    finn-rudolph committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    fe0ee84 View commit details
    Browse the repository at this point in the history
  4. add tests for float to in casts

    disallow string to bool casts
    finn-rudolph committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    b54438f View commit details
    Browse the repository at this point in the history
  5. add floor / ceil

    finn-rudolph committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    b4d1b44 View commit details
    Browse the repository at this point in the history
  6. make float to int casts consistent

    we always truncate, like in C
    finn-rudolph committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    5602830 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2024

  1. Configuration menu
    Copy the full SHA
    bb73672 View commit details
    Browse the repository at this point in the history
  2. add stronger test cases

    finn-rudolph committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    2c9a589 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. Configuration menu
    Copy the full SHA
    2d00ebe View commit details
    Browse the repository at this point in the history
  2. add nan / inf cols manually

    polars does not write them properly to the database
    finn-rudolph committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    c35a980 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e7383d4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ec306c9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    611c3b0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5aa690b View commit details
    Browse the repository at this point in the history
  7. partially implement cast of float to string

    we do not guarantte equivalence here (e.g. 0.0 vs 0), but we guarantee that a
    sequence of casts Float64 -> String -> Float64 is the identity (up to some
    epsilon).
    finn-rudolph committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    9c79efb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    193905a View commit details
    Browse the repository at this point in the history
  9. make sqa_type and pdt_type in sql classmethods

    so that e.g. mssql can return DATETIME2 instead of DATETIME
    finn-rudolph committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    b5fafe9 View commit details
    Browse the repository at this point in the history
  10. implement str.to_datetime

    we currently only guarantee this to work for datetimes of the form
    YYYY-MM-DD HH:MM:SS.MILLIS (yes, exactly six digits after the comma, which makes
    sense since we guarantee all operations on datetimes on millisecond precision)
    finn-rudolph committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    ed5fc1b View commit details
    Browse the repository at this point in the history
  11. make dtype comparisons more readable

    we allow __eq__ between a dtype instance and a dtype class. When comparing with
    a class, const and vararg are ignored.
    finn-rudolph committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    289d57f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    081712c View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a3933e5 View commit details
    Browse the repository at this point in the history