@@ -27,7 +27,7 @@ use core::{
27
27
str::FromStr,
28
28
};
29
29
use helpers::attached_token::AttachedToken;
30
- use std::collections::BTreeSet ;
30
+ use std::collections::HashSet ;
31
31
32
32
use log::debug;
33
33
@@ -10423,7 +10423,7 @@ impl<'a> Parser<'a> {
10423
10423
let by_num = FunctionArg::Unnamed(FunctionArgExpr::Expr(Expr::Value(
10424
10424
Value::SingleQuotedString(by.len().to_string()),
10425
10425
)));
10426
- let mut fake_group_by = BTreeSet ::new();
10426
+ let mut fake_group_by = HashSet ::new();
10427
10427
let by = by
10428
10428
.into_iter()
10429
10429
.map(|x| {
@@ -10434,7 +10434,7 @@ impl<'a> Parser<'a> {
10434
10434
// range_fn(func, range, fill, byc, [byv], align, to)
10435
10435
// byc are length of variadic arguments [byv]
10436
10436
let mut rewrite_count = 0;
10437
- let mut align_fill_rewrite = |expr: Expr, columns: &mut BTreeSet <Expr>| {
10437
+ let mut align_fill_rewrite = |expr: Expr, columns: &mut HashSet <Expr>| {
10438
10438
rewrite_calculation_expr(&expr, true, &mut |e: &Expr| match e {
10439
10439
Expr::Function(func) => {
10440
10440
if let Some(name) = func.name.0.first() {
@@ -14350,7 +14350,7 @@ where
14350
14350
Ok(())
14351
14351
}
14352
14352
14353
- fn collect_column_from_expr(expr: &Expr, columns: &mut BTreeSet <Expr>, remove: bool) {
14353
+ fn collect_column_from_expr(expr: &Expr, columns: &mut HashSet <Expr>, remove: bool) {
14354
14354
let _ = walk_expr(expr, &mut |e| {
14355
14355
if matches!(e, Expr::CompoundIdentifier(_) | Expr::Identifier(_)) {
14356
14356
if remove {
0 commit comments