pydiverse / pydiverse.pipedag

A data pipeline orchestration library for rapid iterative development with automatic cache invalidation allowing users to focus writing their tasks in pandas, polars, sqlalchemy, ibis, and alike.
https://pydiversepipedag.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
15 stars 2 forks source link

Fix numeric to float #153

Closed windiana42 closed 5 months ago

windiana42 commented 5 months ago

Bug fix which has nothing to do with the release yesterday. But a project figured out problems loading fixpoint columns (i.e. DECIMAL(15,2) in a pandas task). The precision parameter of sa.Numeric was handled identically to sa.Float. However for Float it is in bits and for Numeric it is in decimal places. Nevertheless isinstance(sa.Float(), sa.Numeric) == True.

Checklist