Skip to content

Commit

Permalink
fix: Adding Decimal datatype support for MSSQL custom query validation (
Browse files Browse the repository at this point in the history
#771)

* fix: Adding Decimal datatype support for MSSQL custom query validation

* Adding only Decimal mapping for IBIS

---------

Co-authored-by: Piyush Sarraf <[email protected]>
  • Loading branch information
piyushsarraf and Piyush Sarraf committed Mar 23, 2023
1 parent 89413c1 commit 0d5c5eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions third_party/ibis/ibis_mssql/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import contextlib
import datetime
import decimal
import getpass

import sqlalchemy as sa
Expand Down Expand Up @@ -256,6 +257,7 @@ def _get_schema_using_query(self, limited_query):
float: 'float64',
str: 'string',
datetime.datetime: 'timestamp',
decimal.Decimal: 'Decimal'
}

with self._execute(limited_query, results=True) as cur:
Expand Down

0 comments on commit 0d5c5eb

Please sign in to comment.