Skip to content

Commit 89309c1

Browse files
committed
fix CI
1 parent f01301d commit 89309c1

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

src/ast/query.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2549,7 +2549,7 @@ impl fmt::Display for OffsetRows {
25492549
/// GROUP BY item;
25502550
/// ```
25512551
///
2552-
/// See https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#pipe_syntax
2552+
/// See <https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#pipe_syntax>
25532553
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
25542554
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
25552555
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
@@ -2558,45 +2558,45 @@ pub enum PipeOperator {
25582558
///
25592559
/// Syntax: `|> LIMIT <n> [OFFSET <m>]`
25602560
///
2561-
/// See more at https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#limit_pipe_operator
2561+
/// See more at <https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#limit_pipe_operator>
25622562
Limit { expr: Expr, offset: Option<Expr> },
25632563
/// Filters the results of the input table.
25642564
///
25652565
/// Syntax: `|> WHERE <condition>`
25662566
///
2567-
/// See more at https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#where_pipe_operator
2567+
/// See more at <https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#where_pipe_operator>
25682568
Where { expr: Expr },
2569-
/// ORDER BY <expr> [ASC|DESC], ...
2569+
/// `ORDER BY <expr> [ASC|DESC], ...`
25702570
OrderBy { exprs: Vec<OrderByExpr> },
25712571
/// Produces a new table with the listed columns, similar to the outermost SELECT clause in a table subquery in standard syntax.
25722572
///
25732573
/// Syntax `|> SELECT <expr> [[AS] alias], ...`
25742574
///
2575-
/// See more at https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#select_pipe_operator
2575+
/// See more at <https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#select_pipe_operator>
25762576
Select { exprs: Vec<SelectItem> },
25772577
/// Propagates the existing table and adds computed columns, similar to SELECT *, new_column in standard syntax.
25782578
///
25792579
/// Syntax: `|> EXTEND <expr> [[AS] alias], ...`
25802580
///
2581-
/// See more at https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#extend_pipe_operator
2581+
/// See more at <https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#extend_pipe_operator>
25822582
Extend { exprs: Vec<SelectItem> },
25832583
/// Replaces the value of a column in the current table, similar to SELECT * REPLACE (expression AS column) in standard syntax.
25842584
///
25852585
/// Syntax: `|> SET <column> = <expression>, ...`
25862586
///
2587-
/// See more at https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#set_pipe_operator
2587+
/// See more at <https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#set_pipe_operator>
25882588
Set { assignments: Vec<Assignment> },
25892589
/// Removes listed columns from the current table, similar to SELECT * EXCEPT (column) in standard syntax.
25902590
///
25912591
/// Syntax: `|> DROP <column>, ...`
25922592
///
2593-
/// See more at https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#drop_pipe_operator
2593+
/// See more at <https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#drop_pipe_operator>
25942594
Drop { columns: Vec<Ident> },
25952595
/// Introduces a table alias for the input table, similar to applying the AS alias clause on a table subquery in standard syntax.
25962596
///
25972597
/// Syntax: `|> AS <alias>`
25982598
///
2599-
/// See more at https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#as_pipe_operator
2599+
/// See more at <https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#as_pipe_operator>
26002600
As { alias: Ident },
26012601
/// Performs aggregation on data across grouped rows or an entire table.
26022602
///
@@ -2608,7 +2608,7 @@ pub enum PipeOperator {
26082608
/// GROUP BY <grouping_expr> [AS alias], ...
26092609
/// ```
26102610
///
2611-
/// See more at https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#aggregate_pipe_operator
2611+
/// See more at <https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#aggregate_pipe_operator>
26122612
Aggregate {
26132613
full_table_exprs: Vec<ExprWithAliasAndOrderBy>,
26142614
group_by_expr: Vec<ExprWithAliasAndOrderBy>,

src/dialect/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ pub trait Dialect: Debug + Any {
527527
/// |> limit 1
528528
/// ```
529529
///
530-
/// See https://cloud.google.com/bigquery/docs/pipe-syntax-guide#basic_syntax
530+
/// See <https://cloud.google.com/bigquery/docs/pipe-syntax-guide#basic_syntax>
531531
fn supports_pipe_operator(&self) -> bool {
532532
false
533533
}

tests/sqlparser_common.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15104,6 +15104,7 @@ fn parse_pipeline_operator() {
1510415104
);
1510515105
}
1510615106

15107+
#[test]
1510715108
fn parse_multiple_set_statements() -> Result<(), ParserError> {
1510815109
let dialects = all_dialects_where(|d| d.supports_comma_separated_set_assignments());
1510915110
let stmt = dialects.verified_stmt("SET @a = 1, b = 2");

tests/sqlparser_postgres.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4859,6 +4859,7 @@ fn test_simple_postgres_insert_with_alias() {
48594859
for_clause: None,
48604860
settings: None,
48614861
format_clause: None,
4862+
pipe_operators: vec![],
48624863
})),
48634864
assignments: vec![],
48644865
partitioned: None,
@@ -4871,7 +4872,6 @@ fn test_simple_postgres_insert_with_alias() {
48714872
insert_alias: None,
48724873
settings: None,
48734874
format_clause: None,
4874-
pipe_operators: vec![],
48754875
})
48764876
)
48774877
}

0 commit comments

Comments
 (0)