in awswrangler/_data_types.py [0:0]
def athena2quicksight(dtype: str) -> str: # noqa: PLR0911
"""Athena to Quicksight data types conversion."""
dtype = dtype.lower()
if dtype == "tinyint":
return "INTEGER"
if dtype == "smallint":
return "INTEGER"
if dtype in ("int", "integer"):
return "INTEGER"
if dtype == "bigint":
return "INTEGER"
if dtype in ("float", "real"):
return "DECIMAL"
if dtype == "double":
return "DECIMAL"
if dtype in ("boolean", "bool"):
return "BOOLEAN"
if dtype.startswith(("char", "varchar")):
return "STRING"
if dtype == "string":
return "STRING"
if dtype == "timestamp":
return "DATETIME"
if dtype == "date":
return "DATETIME"
if dtype.startswith("decimal"):
return "DECIMAL"
if dtype == "binary":
return "BIT"
raise exceptions.UnsupportedType(f"Unsupported Athena type: {dtype}")