forked from repo-mirrors/sqlfluff
77 lines
2.1 KiB
YAML
77 lines
2.1 KiB
YAML
# YML test files are auto-generated from SQL files and should not be edited by
|
|
# hand. To help enforce this, the "hash" field in the file must match a hash
|
|
# computed by SQLFluff when running the tests. Please run
|
|
# `python test/generate_parse_fixture_yml.py` to generate them after adding or
|
|
# altering SQL files.
|
|
_hash: 31109752b72e9e04185357c787940f20b3a9e350e5d532c5b0cac132c1687c27
|
|
file:
|
|
- statement:
|
|
create_table_statement:
|
|
- keyword: CREATE
|
|
- keyword: TABLE
|
|
- table_reference:
|
|
- naked_identifier: db
|
|
- dot: .
|
|
- naked_identifier: foo
|
|
- bracketed:
|
|
- start_bracket: (
|
|
- column_definition:
|
|
naked_identifier: col1
|
|
data_type:
|
|
primitive_type:
|
|
keyword: integer
|
|
- comma: ','
|
|
- column_definition:
|
|
naked_identifier: col2
|
|
data_type:
|
|
primitive_type:
|
|
keyword: string
|
|
- end_bracket: )
|
|
- statement_terminator: ;
|
|
- statement:
|
|
create_table_statement:
|
|
- keyword: CREATE
|
|
- keyword: TABLE
|
|
- table_reference:
|
|
- naked_identifier: db
|
|
- dot: .
|
|
- naked_identifier: foo
|
|
- bracketed:
|
|
- start_bracket: (
|
|
- column_definition:
|
|
naked_identifier: col1
|
|
data_type:
|
|
primitive_type:
|
|
keyword: INT
|
|
- comma: ','
|
|
- column_definition:
|
|
naked_identifier: col2
|
|
data_type:
|
|
primitive_type:
|
|
keyword: STRING
|
|
- comma: ','
|
|
- column_definition:
|
|
naked_identifier: col3
|
|
data_type:
|
|
primitive_type:
|
|
keyword: DECIMAL
|
|
bracketed_arguments:
|
|
bracketed:
|
|
- start_bracket: (
|
|
- numeric_literal: '10'
|
|
- comma: ','
|
|
- numeric_literal: '2'
|
|
- end_bracket: )
|
|
- end_bracket: )
|
|
- keyword: PARTITIONED
|
|
- keyword: BY
|
|
- bracketed:
|
|
start_bracket: (
|
|
column_definition:
|
|
naked_identifier: col4
|
|
data_type:
|
|
primitive_type:
|
|
keyword: INT
|
|
end_bracket: )
|
|
- statement_terminator: ;
|