Skip to content

Commit

Permalink
linter - clippy/doc
Browse files Browse the repository at this point in the history
  • Loading branch information
7phs committed May 31, 2024
1 parent 8c759d6 commit 2026abc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ast/data_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ pub enum DataType {
String(Option<u64>),
/// A fixed-length string e.g [ClickHouse][1].
///
/// [1] https://clickhouse.com/docs/en/sql-reference/data-types/fixedstring
/// [1]: https://clickhouse.com/docs/en/sql-reference/data-types/fixedstring
FixedString(u64),
/// Bytea
Bytea,
Expand Down
7 changes: 4 additions & 3 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2236,9 +2236,10 @@ impl<'a> Parser<'a> {
/// ```sql
/// [field_name] field_type
/// ```
/// [1] https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#declaring_a_struct_type
/// [2] https://clickhouse.com/docs/en/sql-reference/data-types/nested-data-structures/nested
/// [3] https://clickhouse.com/docs/en/sql-reference/data-types/tuple
///
/// [1]: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#declaring_a_struct_type
/// [2]: https://clickhouse.com/docs/en/sql-reference/data-types/nested-data-structures/nested
/// [3]: https://clickhouse.com/docs/en/sql-reference/data-types/tuple
fn parse_struct_field_def(
&mut self,
allow_anonymous: bool,
Expand Down
7 changes: 4 additions & 3 deletions tests/sqlparser_clickhouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,10 @@ fn parse_create_table_with_nullable() {
name: Ident::new("d"),
data_type: DataType::Date32,
collation: None,
options: vec![
ColumnOptionDef{name: None, option: ColumnOption::Null}
],
options: vec![ColumnOptionDef {
name: None,
option: ColumnOption::Null
}],
},
]
);
Expand Down

0 comments on commit 2026abc

Please sign in to comment.