dlt-hub / verified-sources

Contribute to dlt verified sources 🔥
https://dlthub.com/docs/walkthroughs/add-a-verified-source
Apache License 2.0
74 stars 50 forks source link

derive decimal type from sql alchemy before attempting integers #526

Closed rudolfix closed 4 months ago

rudolfix commented 4 months ago

Tell us what you do here

Short description

Oracle NUMBER type derives both from Numeric and Integer and is used to represent decimals and float (integers have separate type)

class NUMBER(sqltypes.Numeric, sqltypes.Integer):
    __visit_name__ = "NUMBER"

type inference was changed so Numeric is checked first and then integers