File tree 1 file changed +7
-21
lines changed
1 file changed +7
-21
lines changed Original file line number Diff line number Diff line change @@ -283,27 +283,13 @@ fn test_select_wildcard_with_except() {
283
283
_ => unreachable ! ( ) ,
284
284
} ;
285
285
286
- match bigquery_and_generic ( ) . verified_stmt ( "SELECT * EXCEPT (col1, col2) FROM _table" ) {
287
- Statement :: Query ( query) => match * query. body {
288
- SetExpr :: Select ( select) => match & select. projection [ 0 ] {
289
- SelectItem :: Wildcard ( WildcardAdditionalOptions {
290
- opt_except : Some ( except) ,
291
- ..
292
- } ) => {
293
- assert_eq ! (
294
- * except,
295
- ExceptSelectItem {
296
- fist_elemnt: Ident :: new( "col1" ) ,
297
- additional_elements: vec![ Ident :: new( "col2" ) ]
298
- }
299
- )
300
- }
301
- _ => unreachable ! ( ) ,
302
- } ,
303
- _ => unreachable ! ( ) ,
304
- } ,
305
- _ => unreachable ! ( ) ,
306
- } ;
286
+ assert_eq ! (
287
+ bigquery_and_generic( )
288
+ . parse_sql_statements( "SELECT * EXCEPT () FROM employee_table" )
289
+ . unwrap_err( )
290
+ . to_string( ) ,
291
+ "sql parser error: Expected identifier, found: )"
292
+ ) ;
307
293
}
308
294
309
295
fn bigquery ( ) -> TestedDialects {
You can’t perform that action at this time.
0 commit comments