1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
# 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: ff77247983387146d9b814e25bef3c1adb9fa4da89f2090acc2daa4f1e1c2764
file:
- statement:
assert_statement:
- keyword: ASSERT
- expression:
bracketed:
start_bracket: (
expression:
bracketed:
start_bracket: (
expression:
select_statement:
select_clause:
keyword: SELECT
select_clause_element:
function:
function_name:
function_name_identifier: COUNT
function_contents:
bracketed:
start_bracket: (
star: '*'
end_bracket: )
from_clause:
keyword: FROM
from_expression:
from_expression_element:
table_expression:
function:
function_name:
function_name_identifier: UNNEST
function_contents:
bracketed:
start_bracket: (
expression:
array_literal:
- start_square_bracket: '['
- numeric_literal: '1'
- comma: ','
- numeric_literal: '2'
- comma: ','
- numeric_literal: '3'
- comma: ','
- numeric_literal: '4'
- comma: ','
- numeric_literal: '5'
- comma: ','
- numeric_literal: '6'
- end_square_bracket: ']'
end_bracket: )
end_bracket: )
comparison_operator:
raw_comparison_operator: '>'
numeric_literal: '5'
end_bracket: )
- keyword: AS
- quoted_literal: "'Table must contain more than 5 rows.'"
- statement_terminator: ;
- statement:
assert_statement:
- keyword: ASSERT
- expression:
keyword: EXISTS
bracketed:
start_bracket: (
select_statement:
select_clause:
keyword: SELECT
select_clause_element:
column_reference:
naked_identifier: X
from_clause:
keyword: FROM
from_expression:
from_expression_element:
table_expression:
function:
function_name:
function_name_identifier: UNNEST
function_contents:
bracketed:
start_bracket: (
expression:
array_literal:
- start_square_bracket: '['
- numeric_literal: '7877'
- comma: ','
- numeric_literal: '7879'
- comma: ','
- numeric_literal: '7883'
- comma: ','
- numeric_literal: '7901'
- comma: ','
- numeric_literal: '7907'
- end_square_bracket: ']'
end_bracket: )
alias_expression:
alias_operator:
keyword: AS
naked_identifier: X
where_clause:
keyword: WHERE
expression:
column_reference:
naked_identifier: X
comparison_operator:
raw_comparison_operator: '='
numeric_literal: '7919'
end_bracket: )
- keyword: AS
- quoted_literal: "'Column X must contain the value 7919'"
- statement_terminator: ;
|