cosmotech.coal.azure.adx.utils¶
utils
¶
create_column_mapping(data)
¶
Create a column mapping for a PyArrow table.
Args: data: The PyArrow table data
Returns: dict: A mapping of column names to their ADX types
Source code in cosmotech/coal/azure/adx/utils.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
type_mapping(key, key_example_value)
¶
Map Python types to ADX types.
Args: key: The name of the key key_example_value: A possible value of the key
Returns: str: The name of the type used in ADX
Source code in cosmotech/coal/azure/adx/utils.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|