Skip to content

Commit b1f359a

Browse files
upgrade to 0.55.0
1 parent fc6b0b7 commit b1f359a

File tree

8 files changed

+59
-49
lines changed

8 files changed

+59
-49
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bigdecimal-sql = ["bigdecimal", "df_sqlparser/bigdecimal"]
4343

4444
[dependencies]
4545
bigdecimal = { version = "0.4.1", features = ["serde"], optional = true }
46-
df_sqlparser = { package = "sqlparser", version = "0.54.0" }
46+
df_sqlparser = { package = "sqlparser", version = "0.55.0" }
4747
log = "0.4"
4848
recursive = { version = "0.1.1", optional = true}
4949

src/ast/data_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ impl fmt::Display for CharLengthUnits {
984984
}
985985
}
986986

987-
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
987+
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
988988
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
989989
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
990990
pub enum BinaryLength {

src/ast/ddl.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ impl fmt::Display for AlterIndexOperation {
808808
}
809809

810810
/// An `ALTER TYPE` statement (`Statement::AlterType`)
811-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
811+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
812812
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
813813
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
814814
pub struct AlterType {
@@ -817,7 +817,7 @@ pub struct AlterType {
817817
}
818818

819819
/// An [AlterType] operation
820-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
820+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
821821
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
822822
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
823823
pub enum AlterTypeOperation {
@@ -827,15 +827,15 @@ pub enum AlterTypeOperation {
827827
}
828828

829829
/// See [AlterTypeOperation::Rename]
830-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
830+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
831831
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
832832
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
833833
pub struct AlterTypeRename {
834834
pub new_name: Ident,
835835
}
836836

837837
/// See [AlterTypeOperation::AddValue]
838-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
838+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
839839
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
840840
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
841841
pub struct AlterTypeAddValue {
@@ -845,7 +845,7 @@ pub struct AlterTypeAddValue {
845845
}
846846

847847
/// See [AlterTypeAddValue]
848-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
848+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
849849
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
850850
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
851851
pub enum AlterTypeAddValuePosition {
@@ -854,7 +854,7 @@ pub enum AlterTypeAddValuePosition {
854854
}
855855

856856
/// See [AlterTypeOperation::RenameValue]
857-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
857+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
858858
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
859859
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
860860
pub struct AlterTypeRenameValue {
@@ -2478,7 +2478,7 @@ impl fmt::Display for CreateFunction {
24782478
/// ```
24792479
///
24802480
/// [Hive](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=27362034#LanguageManualDDL-CreateDataConnectorCreateConnector)
2481-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
2481+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
24822482
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
24832483
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
24842484
pub struct CreateConnector {

src/ast/helpers/key_value_options.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,21 @@ use core::fmt::Formatter;
2828
#[cfg(feature = "serde")]
2929
use serde::{Deserialize, Serialize};
3030

31+
use crate::ast::Convert;
32+
use sqlparser_derive::DFConvert;
3133
#[cfg(feature = "visitor")]
3234
use sqlparser_derive::{Visit, VisitMut};
3335

34-
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
36+
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, DFConvert)]
37+
#[df_path(df_sqlparser::ast::helpers::key_value_options)]
3538
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
3639
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
3740
pub struct KeyValueOptions {
3841
pub options: Vec<KeyValueOption>,
3942
}
4043

41-
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
44+
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, DFConvert)]
45+
#[df_path(df_sqlparser::ast::helpers::key_value_options)]
4246
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
4347
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
4448
pub enum KeyValueOptionType {
@@ -48,7 +52,8 @@ pub enum KeyValueOptionType {
4852
NUMBER,
4953
}
5054

51-
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
55+
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, DFConvert)]
56+
#[df_path(df_sqlparser::ast::helpers::key_value_options)]
5257
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
5358
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
5459
pub struct KeyValueOption {

src/ast/mod.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ impl fmt::Display for ObjectName {
381381
}
382382

383383
/// A single part of an ObjectName
384-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
384+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
385385
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
386386
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
387387
pub enum ObjectNamePart {
@@ -727,7 +727,7 @@ pub enum CeilFloorKind {
727727

728728
/// A WHEN clause in a CASE expression containing both
729729
/// the condition and its corresponding result
730-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
730+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
731731
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
732732
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
733733
pub struct CaseWhen {
@@ -6807,7 +6807,7 @@ impl fmt::Display for Action {
68076807
}
68086808
}
68096809

6810-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
6810+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
68116811
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
68126812
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
68136813
/// See <https://docs.snowflake.com/en/sql-reference/sql/grant-privilege>
@@ -6854,7 +6854,7 @@ impl fmt::Display for ActionCreateObjectType {
68546854
}
68556855
}
68566856

6857-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
6857+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
68586858
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
68596859
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
68606860
/// See <https://docs.snowflake.com/en/sql-reference/sql/grant-privilege>
@@ -6889,7 +6889,7 @@ impl fmt::Display for ActionApplyType {
68896889
}
68906890
}
68916891

6892-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
6892+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
68936893
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
68946894
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
68956895
/// See <https://docs.snowflake.com/en/sql-reference/sql/grant-privilege>
@@ -6914,7 +6914,7 @@ impl fmt::Display for ActionExecuteObjectType {
69146914
}
69156915
}
69166916

6917-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
6917+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
69186918
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
69196919
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
69206920
/// See <https://docs.snowflake.com/en/sql-reference/sql/grant-privilege>
@@ -6943,7 +6943,7 @@ impl fmt::Display for ActionManageType {
69436943
}
69446944
}
69456945

6946-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
6946+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
69476947
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
69486948
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
69496949
/// See <https://docs.snowflake.com/en/sql-reference/sql/grant-privilege>
@@ -6966,7 +6966,7 @@ impl fmt::Display for ActionModifyType {
69666966
}
69676967
}
69686968

6969-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
6969+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
69706970
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
69716971
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
69726972
/// See <https://docs.snowflake.com/en/sql-reference/sql/grant-privilege>
@@ -9849,7 +9849,7 @@ impl fmt::Display for ShowStatementIn {
98499849
}
98509850
}
98519851

9852-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
9852+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
98539853
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
98549854
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
98559855
pub struct ShowObjects {
@@ -10055,7 +10055,7 @@ impl fmt::Display for SessionParamValue {
1005510055
/// ```
1005610056
///
1005710057
/// <https://docs.snowflake.com/en/sql-reference/sql/create-iceberg-table>
10058-
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
10058+
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
1005910059
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
1006010060
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
1006110061
pub enum StorageSerializationPolicy {
@@ -10073,7 +10073,7 @@ impl Display for StorageSerializationPolicy {
1007310073
}
1007410074

1007510075
/// Variants of the Snowflake `COPY INTO` statement
10076-
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
10076+
#[derive(Debug, Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
1007710077
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
1007810078
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
1007910079
pub enum CopyIntoSnowflakeKind {

src/ast/query.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl fmt::Display for Table {
292292
}
293293

294294
/// What did this select look like?
295-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
295+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
296296
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
297297
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
298298
pub enum SelectFlavor {
@@ -686,7 +686,7 @@ impl fmt::Display for Cte {
686686

687687
/// Represents an expression behind a wildcard expansion in a projection.
688688
/// `SELECT T.* FROM T;
689-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
689+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
690690
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
691691
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
692692
pub enum SelectItemQualifiedWildcardKind {
@@ -1123,7 +1123,7 @@ pub struct TableFunctionArgs {
11231123
pub settings: Option<Vec<Setting>>,
11241124
}
11251125

1126-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
1126+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
11271127
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
11281128
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
11291129
pub enum TableIndexHintType {
@@ -1142,7 +1142,7 @@ impl fmt::Display for TableIndexHintType {
11421142
}
11431143
}
11441144

1145-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
1145+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
11461146
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
11471147
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
11481148
pub enum TableIndexType {
@@ -1159,7 +1159,7 @@ impl fmt::Display for TableIndexType {
11591159
}
11601160
}
11611161

1162-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
1162+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
11631163
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
11641164
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
11651165
pub enum TableIndexHintForClause {
@@ -1178,7 +1178,7 @@ impl fmt::Display for TableIndexHintForClause {
11781178
}
11791179
}
11801180

1181-
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
1181+
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash, DFConvert)]
11821182
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
11831183
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
11841184
pub struct TableIndexHints {

src/ast/value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ use crate::ast::DFConvert;
7272
/// // convert back to `Value`
7373
/// let value: Value = value_with_span.into();
7474
/// ```
75-
#[derive(Debug, Clone, Eq)]
75+
#[derive(Debug, Clone, Eq, DFConvert)]
7676
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
7777
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
7878
pub struct ValueWithSpan {

src/parser/mod.rs

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ impl<'a> Parser<'a> {
12691269
self.expect_token(&Token::RParen)?;
12701270
expr
12711271
} else if let Ok(value) = self.parse_value() {
1272-
value.verify_duration()?;
1272+
value.value.verify_duration()?;
12731273
Expr::Value(value)
12741274
} else {
12751275
self.index = index;
@@ -1299,10 +1299,10 @@ impl<'a> Parser<'a> {
12991299
let args = vec![
13001300
FunctionArg::Unnamed(FunctionArgExpr::Expr(e.clone())),
13011301
FunctionArg::Unnamed(FunctionArgExpr::Expr(range.clone())),
1302-
FunctionArg::Unnamed(FunctionArgExpr::Expr(Expr::Value(fill.clone()))),
1302+
FunctionArg::Unnamed(FunctionArgExpr::Expr(Expr::Value(fill.clone().into()))),
13031303
];
13041304
let range_func = Function {
1305-
name: ObjectName(vec![Ident::new("range_fn")]),
1305+
name: vec![Ident::new("range_fn")].into(),
13061306
over: None,
13071307
filter: None,
13081308
null_treatment: None,
@@ -12011,7 +12011,7 @@ impl<'a> Parser<'a> {
1201112011
expr
1201212012
} else {
1201312013
let value = self.parse_value()?;
12014-
value.verify_duration()?;
12014+
value.value.verify_duration()?;
1201512015
Expr::Value(value)
1201612016
};
1201712017
let to = if self.parse_keyword(Keyword::TO) {
@@ -12021,12 +12021,15 @@ impl<'a> Parser<'a> {
1202112021
expr
1202212022
} else {
1202312023
let value = self.next_token().to_string();
12024-
Expr::Value(Value::SingleQuotedString(
12025-
value.trim_matches(|x| x == '\'' || x == '"').to_string(),
12026-
))
12024+
Expr::Value(
12025+
Value::SingleQuotedString(
12026+
value.trim_matches(|x| x == '\'' || x == '"').to_string(),
12027+
)
12028+
.into(),
12029+
)
1202712030
}
1202812031
} else {
12029-
Expr::Value(Value::SingleQuotedString(String::new()))
12032+
Expr::Value(Value::SingleQuotedString(String::new()).into())
1203012033
};
1203112034
let by = if self.parse_keyword(Keyword::BY) {
1203212035
self.expect_token(&Token::LParen)?;
@@ -12038,11 +12041,13 @@ impl<'a> Parser<'a> {
1203812041
// `()` == `(1)`
1203912042
#[cfg(not(feature = "bigdecimal-sql"))]
1204012043
{
12041-
vec![Expr::Value(Value::Number("1".into(), false))]
12044+
vec![Expr::Value(Value::Number("1".into(), false).into())]
1204212045
}
1204312046
#[cfg(feature = "bigdecimal-sql")]
1204412047
{
12045-
vec![Expr::Value(Value::Number(BigDecimal::from(1), false))]
12048+
vec![Expr::Value(
12049+
Value::Number(BigDecimal::from(1), false).into(),
12050+
)]
1204612051
}
1204712052
} else {
1204812053
let by = self.parse_comma_separated(Parser::parse_expr)?;
@@ -12071,7 +12076,7 @@ impl<'a> Parser<'a> {
1207112076
let projection = if let Some((align, to, by)) = align {
1207212077
let fill = fill.unwrap_or_default();
1207312078
let by_num = FunctionArg::Unnamed(FunctionArgExpr::Expr(Expr::Value(
12074-
Value::SingleQuotedString(by.len().to_string()),
12079+
Value::SingleQuotedString(by.len().to_string()).into(),
1207512080
)));
1207612081
let mut fake_group_by = HashSet::new();
1207712082
let by = by
@@ -12088,7 +12093,7 @@ impl<'a> Parser<'a> {
1208812093
rewrite_calculation_expr(&expr, true, &mut |e: &Expr| match e {
1208912094
Expr::Function(func) => {
1209012095
if let Some(name) = func.name.0.first() {
12091-
if name.value.as_str() == "range_fn" {
12096+
if name.to_string() == "range_fn" {
1209212097
let mut range_func = func.clone();
1209312098
let FunctionArguments::List(args) = &mut range_func.args else {
1209412099
unreachable!()
@@ -12101,7 +12106,10 @@ impl<'a> Parser<'a> {
1210112106
}
1210212107
// use global fill if fill not given in range select item
1210312108
if let Some(FunctionArg::Unnamed(FunctionArgExpr::Expr(
12104-
Expr::Value(Value::SingleQuotedString(value)),
12109+
Expr::Value(ValueWithSpan {
12110+
value: Value::SingleQuotedString(value),
12111+
..
12112+
}),
1210512113
))) = args.args.last_mut()
1210612114
{
1210712115
if value.is_empty() {
@@ -12164,7 +12172,7 @@ impl<'a> Parser<'a> {
1216412172
rewrite_calculation_expr(expr, true, &mut |e: &Expr| match e {
1216512173
Expr::Function(func) => {
1216612174
if let Some(name) = func.name.0.first() {
12167-
if name.value.as_str() == "range_fn" {
12175+
if name.to_string() == "range_fn" {
1216812176
let FunctionArguments::List(args) = &func.args else {
1216912177
unreachable!()
1217012178
};
@@ -12185,11 +12193,8 @@ impl<'a> Parser<'a> {
1218512193
projection
1218612194
.iter()
1218712195
.map(|select_item| {
12188-
match select_item {
12189-
SelectItem::UnnamedExpr(expr) => {
12190-
align_fill_validate(expr)?;
12191-
}
12192-
_ => {}
12196+
if let SelectItem::UnnamedExpr(expr) = select_item {
12197+
align_fill_validate(expr)?;
1219312198
}
1219412199
Ok(())
1219512200
})

0 commit comments

Comments
 (0)