From 4af080cb216a204e24f4cadb9e0274abcc8205cd Mon Sep 17 00:00:00 2001 From: ptiurin Date: Wed, 15 Feb 2023 15:57:38 +0000 Subject: [PATCH 1/2] fix: Decimal class type compatibility --- src/firebolt/async_db/_types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/firebolt/async_db/_types.py b/src/firebolt/async_db/_types.py index 8b5c0b81a72..2290aa93d1b 100644 --- a/src/firebolt/async_db/_types.py +++ b/src/firebolt/async_db/_types.py @@ -125,6 +125,7 @@ def __eq__(self, other: object) -> bool: class DECIMAL: """Class for holding `decimal` value information in Firebolt DB.""" + __name__ = "Decimal" _prefix = "Decimal(" def __init__(self, precision: int, scale: int): From a1e74564e6d2dc531ca5938a7e4ba528458be9b2 Mon Sep 17 00:00:00 2001 From: ptiurin Date: Fri, 17 Feb 2023 09:28:08 +0000 Subject: [PATCH 2/2] Adding array --- src/firebolt/async_db/_types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/firebolt/async_db/_types.py b/src/firebolt/async_db/_types.py index 2290aa93d1b..73f2c109ede 100644 --- a/src/firebolt/async_db/_types.py +++ b/src/firebolt/async_db/_types.py @@ -105,6 +105,7 @@ def Binary(value: str) -> str: class ARRAY: """Class for holding `array` column type information in Firebolt DB.""" + __name__ = "Array" _prefix = "array(" def __init__(self, subtype: Union[type, ARRAY, DECIMAL]):