File: drop_function.yml

package info (click to toggle)
sqlfluff 3.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,000 kB
  • sloc: python: 106,131; sql: 34,188; makefile: 52; sh: 8
file content (30 lines) | stat: -rw-r--r-- 979 bytes parent folder | download | duplicates (2)
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
# 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: 44f1419fcbbb552e97a30e133cb19c55f83cdf84900d961fc83803e0153c856e
file:
- statement:
    drop_function_statement:
    - keyword: DROP
    - keyword: FUNCTION
    - function_name:
      - naked_identifier: myproject
      - dot: .
      - naked_identifier: mydataset
      - dot: .
      - function_name_identifier: addfunc
- statement_terminator: ;
- statement:
    drop_function_statement:
    - keyword: DROP
    - keyword: TABLE
    - keyword: FUNCTION
    - keyword: IF
    - keyword: EXISTS
    - function_name:
        naked_identifier: example_dataset
        dot: .
        function_name_identifier: example_table_function
- statement_terminator: ;