Issue #2462: Fix profiler group_by query (#2463)

This commit is contained in:
Sriharsha Chintalapani 2022-01-27 00:56:32 -08:00 committed by GitHub
parent 48c1ad63c4
commit c36ae72ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -354,7 +354,9 @@ class Profiler:
boundary += bucket_width
boundaries.append(round(boundary, 3))
group_by_cte = get_group_by_cte(column_name, self.table.name)
group_by_cte = get_group_by_cte(
column_name, self.qualified_table_name
)
numeric_value_expr = get_group_by_cte_numeric_value_expression(
column, self.database, None
)
@ -388,7 +390,6 @@ class Profiler:
f" {fields} \n"
f"FROM group_by_value"
)
row = self.database.execute_query(sql)
self.queries_executed += 1