How to use the pymssql.BINARY.value function in pymssql

To help you get started, we’ve selected a few pymssql examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apache / airflow / airflow / operators / mssql_to_hive.py View on Github external
def type_map(cls, mssql_type: int) -> str:
        """
        Maps MsSQL type to Hive type.
        """
        map_dict = {
            pymssql.BINARY.value: 'INT',  # pylint: disable=c-extension-no-member
            pymssql.DECIMAL.value: 'FLOAT',  # pylint: disable=c-extension-no-member
            pymssql.NUMBER.value: 'INT',  # pylint: disable=c-extension-no-member
        }
        return map_dict.get(mssql_type, 'STRING')