lidavidm commented on code in PR #47139:
URL: https://github.com/apache/arrow/pull/47139#discussion_r2218049955


##########
python/pyarrow/types.py:
##########
@@ -46,6 +48,43 @@
                  lib.Type_STRUCT, lib.Type_MAP} | _UNION_TYPES
 
 
+class TypesEnum(Enum):
+    """
+    An Enum that maps the constant values
+    to underlying data types with the same name.
+    """
+    INT8 = lib.Type_INT8
+    INT16 = lib.Type_INT16
+    INT32 = lib.Type_INT32
+    INT64 = lib.Type_INT64
+    UINT8 = lib.Type_UINT8
+    UINT16 = lib.Type_UINT16
+    UINT32 = lib.Type_UINT32
+    UINT64 = lib.Type_UINT64
+    HALF_FLOAT = lib.Type_HALF_FLOAT
+    FLOAT = lib.Type_FLOAT
+    DOUBLE = lib.Type_DOUBLE
+    DECIMAL32 = lib.Type_DECIMAL32
+    DEIMAL64 = lib.Type_DECIMAL64
+    DECIMAL128 = lib.Type_DECIMAL128
+    DECIMAL256 = lib.Type_DECIMAL256
+    DATE32 = lib.Type_DATE32
+    DATE64 = lib.Type_DATE64
+    TIME32 = lib.Type_TIME32
+    TIME64 = lib.Type_TIME64
+    INTERVAL_MONTH_DAY_NANO = lib.Type_INTERVAL_MONTH_DAY_NANO

Review Comment:
   Where are the other two interval types? (They're not fully supported in 
PyArrow, but at least the type ID should be here.)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to