Skip to content

Commit 2e33f91

Browse files
committed
fmt
1 parent 89f51d3 commit 2e33f91

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/ast/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2683,7 +2683,7 @@ pub enum PipeOperator {
26832683
/// Selects a random sample of rows from the input table.
26842684
/// Syntax: `|> TABLESAMPLE SYSTEM (10 PERCENT)
26852685
/// See more at <https://cloud.google.com/bigquery/docs/reference/standard-sql/pipe-syntax#tablesample_pipe_operator>
2686-
TableSample { sample: Box <TableSample> },
2686+
TableSample { sample: Box<TableSample> },
26872687
}
26882688

26892689
impl fmt::Display for PipeOperator {

src/parser/mod.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12758,11 +12758,14 @@ impl<'a> Parser<'a> {
1275812758
} else {
1275912759
return Ok(None);
1276012760
};
12761-
self.parse_table_sample(modifier).map(|sample| Some(sample))
12761+
self.parse_table_sample(modifier).map(|sample| Some(sample))
1276212762
}
1276312763

12764-
fn parse_table_sample(&mut self, modifier: TableSampleModifier ) -> Result<Box<TableSample>, ParserError> {
12765-
let name = match self.parse_one_of_keywords(&[
12764+
fn parse_table_sample(
12765+
&mut self,
12766+
modifier: TableSampleModifier,
12767+
) -> Result<Box<TableSample>, ParserError> {
12768+
let name = match self.parse_one_of_keywords(&[
1276612769
Keyword::BERNOULLI,
1276712770
Keyword::ROW,
1276812771
Keyword::SYSTEM,

0 commit comments

Comments
 (0)