Athena accepts mixed case in DDL and DML queries, but lower cases the names when it executes the query.
Macros athena__list_relations_without_caching and athena__get_columns_in_relation wrap references to information_schema.table_schema and information_schema.table_name in LOWER(), which I think is unnecessary.
In my testing, the queries executed by these macros perform significantly faster when LOWER() is removed from the information_schema references.
From https://docs.aws.amazon.com/athena/latest/ug/tables-databases-columns-names.html
Macros
athena__list_relations_without_caching
andathena__get_columns_in_relation
wrap references toinformation_schema.table_schema
andinformation_schema.table_name
inLOWER()
, which I think is unnecessary.In my testing, the queries executed by these macros perform significantly faster when
LOWER()
is removed from theinformation_schema
references.