Skip to content

Commit 2751be1

Browse files
x
1 parent 4c6d399 commit 2751be1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/parser/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use core::{
2727
str::FromStr,
2828
};
2929
use helpers::attached_token::AttachedToken;
30-
use std::collections::BTreeSet;
30+
use std::collections::HashSet;
3131

3232
use log::debug;
3333

@@ -12073,7 +12073,7 @@ impl<'a> Parser<'a> {
1207312073
let by_num = FunctionArg::Unnamed(FunctionArgExpr::Expr(Expr::Value(
1207412074
Value::SingleQuotedString(by.len().to_string()),
1207512075
)));
12076-
let mut fake_group_by = BTreeSet::new();
12076+
let mut fake_group_by = HashSet::new();
1207712077
let by = by
1207812078
.into_iter()
1207912079
.map(|x| {
@@ -12084,7 +12084,7 @@ impl<'a> Parser<'a> {
1208412084
// range_fn(func, range, fill, byc, [byv], align, to)
1208512085
// byc are length of variadic arguments [byv]
1208612086
let mut rewrite_count = 0;
12087-
let mut align_fill_rewrite = |expr: Expr, columns: &mut BTreeSet<Expr>| {
12087+
let mut align_fill_rewrite = |expr: Expr, columns: &mut HashSet<Expr>| {
1208812088
rewrite_calculation_expr(&expr, true, &mut |e: &Expr| match e {
1208912089
Expr::Function(func) => {
1209012090
if let Some(name) = func.name.0.first() {
@@ -16959,7 +16959,7 @@ where
1695916959
Ok(())
1696016960
}
1696116961

16962-
fn collect_column_from_expr(expr: &Expr, columns: &mut BTreeSet<Expr>, remove: bool) {
16962+
fn collect_column_from_expr(expr: &Expr, columns: &mut HashSet<Expr>, remove: bool) {
1696316963
let _ = walk_expr(expr, &mut |e| {
1696416964
if matches!(e, Expr::CompoundIdentifier(_) | Expr::Identifier(_)) {
1696516965
if remove {

0 commit comments

Comments
 (0)