File tree Expand file tree Collapse file tree 4 files changed +100
-0
lines changed
crates/lib-dialects/test/fixtures/dialects/databricks Expand file tree Collapse file tree 4 files changed +100
-0
lines changed Original file line number Diff line number Diff line change
1
+ -- List all tables in default database
2
+ SHOW TABLES;
3
+
4
+ -- List all tables from userdb database
5
+ SHOW TABLES FROM userdb;
6
+
7
+ -- List all tables in userdb database
8
+ SHOW TABLES IN userdb;
9
+
10
+ -- List all tables from default database matching the pattern `sam*`
11
+ SHOW TABLES FROM default LIKE ' sam*' ;
12
+
13
+
Original file line number Diff line number Diff line change
1
+ file :
2
+ - statement :
3
+ - show_statement :
4
+ - keyword : SHOW
5
+ - keyword : TABLES
6
+ - statement_terminator : ;
7
+ - statement :
8
+ - show_statement :
9
+ - keyword : SHOW
10
+ - keyword : TABLES
11
+ - keyword : FROM
12
+ - object_reference :
13
+ - naked_identifier : userdb
14
+ - statement_terminator : ;
15
+ - statement :
16
+ - show_statement :
17
+ - keyword : SHOW
18
+ - keyword : TABLES
19
+ - keyword : IN
20
+ - object_reference :
21
+ - naked_identifier : userdb
22
+ - statement_terminator : ;
23
+ - statement :
24
+ - show_statement :
25
+ - keyword : SHOW
26
+ - keyword : TABLES
27
+ - keyword : FROM
28
+ - object_reference :
29
+ - naked_identifier : default
30
+ - keyword : LIKE
31
+ - quoted_literal : ' '' sam*'' '
32
+ - statement_terminator : ;
Original file line number Diff line number Diff line change
1
+ -- List all views in default database
2
+ SHOW VIEWS;
3
+
4
+ -- List all views from userdb database
5
+ SHOW VIEWS FROM userdb;
6
+
7
+ -- List all views in global temp view database
8
+ SHOW VIEWS IN global_temp;
9
+
10
+ -- List all views from default database matching the pattern `sam*`
11
+ SHOW VIEWS FROM default LIKE ' sam*' ;
12
+
13
+ -- List all views from the current database
14
+ -- matching the pattern `sam|suj|temp*`
15
+ SHOW VIEWS LIKE ' sam|suj|temp*' ;
16
+
Original file line number Diff line number Diff line change
1
+ file :
2
+ - statement :
3
+ - show_statement :
4
+ - keyword : SHOW
5
+ - keyword : VIEWS
6
+ - statement_terminator : ;
7
+ - statement :
8
+ - show_statement :
9
+ - keyword : SHOW
10
+ - keyword : VIEWS
11
+ - keyword : FROM
12
+ - object_reference :
13
+ - naked_identifier : userdb
14
+ - statement_terminator : ;
15
+ - statement :
16
+ - show_statement :
17
+ - keyword : SHOW
18
+ - keyword : VIEWS
19
+ - keyword : IN
20
+ - object_reference :
21
+ - naked_identifier : global_temp
22
+ - statement_terminator : ;
23
+ - statement :
24
+ - show_statement :
25
+ - keyword : SHOW
26
+ - keyword : VIEWS
27
+ - keyword : FROM
28
+ - object_reference :
29
+ - naked_identifier : default
30
+ - keyword : LIKE
31
+ - quoted_literal : ' '' sam*'' '
32
+ - statement_terminator : ;
33
+ - statement :
34
+ - show_statement :
35
+ - keyword : SHOW
36
+ - keyword : VIEWS
37
+ - keyword : LIKE
38
+ - quoted_literal : ' '' sam|suj|temp*'' '
39
+ - statement_terminator : ;
You can’t perform that action at this time.
0 commit comments