зеркало из https://github.com/Azure/pykusto.git
Adding numpy int32 as another python type for int
This commit is contained in:
Родитель
73efce32a8
Коммит
4a97b8cca1
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче