Skip to content

Commit c6b2605

Browse files
committed
Remove Snowflake TEXT cast regression test
1 parent 90a4ac6 commit c6b2605

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

tests/sqlparser_snowflake.rs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5010,31 +5010,3 @@ fn test_select_dollar_column_from_stage() {
50105010
// With table function args, without alias
50115011
snowflake().verified_stmt("SELECT $1, $2 FROM @mystage1(file_format => 'myformat')");
50125012
}
5013-
5014-
#[test]
5015-
fn test_parse_cast_to_text_with_length() {
5016-
let select = snowflake().verified_only_select(
5017-
"SELECT _ID::TEXT(16777216) AS _ID FROM INCARE_ANALYTICS.USER_DETAILS",
5018-
);
5019-
match only(&select.projection) {
5020-
SelectItem::ExprWithAlias {
5021-
expr:
5022-
Expr::Cast {
5023-
kind: CastKind::DoubleColon,
5024-
data_type,
5025-
..
5026-
},
5027-
alias,
5028-
} => {
5029-
assert_eq!(alias.value, "_ID");
5030-
assert_eq!(
5031-
*data_type,
5032-
DataType::Custom(
5033-
ObjectName::from(vec![Ident::new("TEXT")]),
5034-
vec!["16777216".to_string()],
5035-
)
5036-
);
5037-
}
5038-
_ => unreachable!(),
5039-
}
5040-
}

0 commit comments

Comments
 (0)