Skip to content

Releases: RayforceDB/rayforce-py

0.6.3

15 Apr 12:02

Choose a tag to compare

Bug Fixes

  • Integer null sentinel handling: I16, I32, and I64 scalars now correctly recognize null sentinels (0Nh, 0Ni, 0Nj) and return None from to_python(). This fixes null comparisons in operations where unmatched rows returned raw sentinel values (e.g., -9223372036854775808) instead of None.

2026-04-15 | 🔗 PyPI | 🔗 GitHub

0.6.2

13 Apr 14:07

Choose a tag to compare

Bug Fixes

  • Now library passes correct contiguous numpy arrays within from_numpy function
  • F64 vectors can now be used in median calculations

2026-03-15 | 🔗 PyPI | 🔗 GitHub

0.6.1

03 Mar 14:18

Choose a tag to compare

New Features

  • Fancy indexing for Tables: Table.__getitem__ now supports multiple indexing modes beyond column access:

    • Expression filter: table[Column("age") > 35] — filter rows by condition. Supports & (and) and | (or) for combining expressions.
    • Integer row access: table[0], table[-1] — access a single row by index, returns a Dict.
    • Slicing: table[1:3], table[:5], table[-2:] — row slicing backed by the C-level TAKE operation.
    • Index list: table[[0, 2, 5]] — select specific rows by position.
  • Vector.from_numpy() auto-widening: Unsupported numpy dtypes are now automatically widened to the nearest supported type: float32/float16F64, int8I16, uint16I32, uint32I64.

  • Vector.from_numpy() bytes and UUID support: Byte string arrays (dtype='S') are automatically decoded to Symbol vectors. Object arrays of uuid.UUID values are detected and converted to GUID vectors.

  • NaT preservation: NaT (Not-a-Time) values in numpy datetime64 and timedelta64 arrays now survive round-trips through Vector.from_numpy() and Vector.to_numpy().

Bug Fixes

  • Table.to_numpy() with Timestamp columns: Fixed DTypePromotionError when calling to_numpy() on tables containing a mix of incompatible column types (e.g., integers, strings, and timestamps). Mixed-type tables now gracefully fall back to object dtype.

  • Filtering F64 by distinct - fixed

  • Vector.__getitem__ for U8 vectors: Fixed U8 vector elements being returned as B8(True/False) instead of U8(value). Both types are 1-byte, causing the C-level at_idx to misinterpret the type.

  • Vector.from_numpy() with explicit ray_type for temporal arrays: Fixed ValueError: cannot include dtype 'M' in a buffer when passing ray_type=Timestamp, ray_type=Date, or ray_type=Time with datetime64/timedelta64 arrays.

2026-03-03 | 🔗 PyPI | 🔗 GitHub

0.6.0

21 Feb 14:42

Choose a tag to compare

New Features

  • Vector.from_numpy() classmethod: Create vectors from NumPy arrays via bulk memory copy. Supports numeric types (int16, int32, int64, float64, uint8, bool), string arrays, and temporal types (datetime64Timestamp/Date, timedelta64Time). Handles epoch adjustment between NumPy (1970-01-01) and Rayforce (2000-01-01) automatically.

  • Vector.to_numpy() method: Export vector data to a NumPy array via bulk memory copy.

  • Vector.to_list() method: Export vector data to a Python list via bulk memory copy from the underlying C buffer.

  • Table.from_dict() classmethod: Create tables from a dictionary of NumPy arrays, Python lists, or Vectors.

  • Table.to_dict() method: Export table data to a Python dictionary of lists via bulk memory copy.

  • Table.to_numpy() method: Export table data to a 2D NumPy array via bulk memory copy.

  • select("*", col=value) fix: Using "*" with computed columns in select() now correctly preserves all existing columns

Dependencies

  • NumPy (>=2.0.0) is now a required dependency.

2026-02-21 | 🔗 PyPI | 🔗 GitHub

0.5.11

19 Feb 15:16

Choose a tag to compare

New Features

  • Timestamp.shift_tz() method: Shift a Timestamp value by a timezone offset. Accepts any datetime.tzinfo (including datetime.timezone and zoneinfo.ZoneInfo).

  • Column.shift_tz() for queries: Shift an entire column of timestamps by a timezone offset within select() expressions.

2026-02-19 | 🔗 PyPI | 🔗 GitHub

0.5.10

11 Feb 18:55

Choose a tag to compare

Bug Fixes

  • Various bugfixes to the database operations

2026-02-11 | 🔗 PyPI | 🔗 GitHub

0.5.9

11 Feb 18:55

Choose a tag to compare

Bug Fixes

  • Fix boolean operator is_ performed over lists and vectors within table aggregations

2026-02-11 | 🔗 PyPI | 🔗 GitHub

0.5.8

11 Feb 18:54

Choose a tag to compare

Bug Fixes

  • Fix type conversion error during upsert operation

2026-02-10 | 🔗 PyPI | 🔗 GitHub

0.5.7

10 Feb 09:56

Choose a tag to compare

Bug Fixes

  • Fix boolean operator is_ performed over lists within table aggregations

2026-02-10 | 🔗 PyPI | 🔗 GitHub

0.5.6

10 Feb 09:56

Choose a tag to compare

Bug Fixes

  • Fix sorting for symbol vectors larger than 32 elements

2026-01-29 | 🔗 PyPI | 🔗 GitHub