Closed armenr closed 2 years ago
I've found & fixed the problem, I'll try to open up a PR soon...
Problem exists in the following places:
Fixed code:
account_map_query = f"""
CREATE OR REPLACE VIEW account_map
AS SELECT DISTINCT
line_item_usage_account_id account_id,
line_item_usage_account_id account_name
FROM \"{table_name}\"
Fixed code:
queryId = athena.start_query_execution(
QueryString=f"""
SELECT COUNT(distinct {fieldName})
FROM \"{database_name}\".\"{table_name}\"
WHERE {fieldName} <> ''
""".strip(),
This is as straight-forward as a pull-request can get. Is anyone going to review or merge this?
Thanks for the fix, merged, closing issue
How to reproduce: