Adding numpy int32 as another python type for int

This commit is contained in:
Ofri Kleinfeld 2022-03-31 14:11:18 +03:00
Родитель 73efce32a8
Коммит 4a97b8cca1
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -2,6 +2,8 @@ from datetime import datetime, timedelta
from enum import Enum
from typing import Union, Mapping, Type, Dict, Callable, Tuple, List, Set, FrozenSet, Any
import numpy as np
PythonTypes = Union[str, int, float, bool, datetime, Mapping, List, Tuple, timedelta]
@ -15,7 +17,7 @@ class _KustoType(Enum):
ARRAY = ('dynamic', 'Dynamic', 'System.Object', List, Tuple)
MAPPING = ('dynamic', 'Dynamic', 'System.Object', Mapping)
LONG = ('long', 'I64', 'System.Int64', int)
INT = ('int', 'I32', 'System.Int32', int)
INT = ('int', 'I32', 'System.Int32', int, np.int32)
REAL = ('real', 'R64', 'System.Double', float)
STRING = ('string', 'StringBuffer', 'System.String', str)
TIMESPAN = ('timespan', 'TimeSpan', 'System.TimeSpan', timedelta)