Skip to content

Commit

Permalink
spi-stats:fix to group unnest Incomplete statistics.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljl committed Jul 4, 2024
1 parent 0dbc9be commit b5d4e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/spi/spi-stats/src/stats_enumeration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl StatsDataTypeKind {

pub(crate) fn to_pg_group(&self, column_name: &str, multi_values: bool, time_window_fun: &Option<StatsQueryTimeWindowKind>) -> Option<String> {
if multi_values {
Some(format!("unnest({})", column_name))
Some(format!("unnest(array_append({},''))", column_name))
} else if let Some(time_window_fun) = time_window_fun {
if self != &StatsDataTypeKind::Date && self != &StatsDataTypeKind::DateTime {
return None;
Expand Down

0 comments on commit b5d4e71

Please sign in to comment.