Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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')