forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ClickHouse#53400 from rschu1ze/follow-up-52695
Follow-up to ClickHouse#52695: Move tests to a more appropriate place
- Loading branch information
Showing
3 changed files
with
22 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
show tables from information_schema; | ||
SHOW TABLES FROM information_schema; | ||
SHOW TABLES FROM INFORMATION_SCHEMA; | ||
|
||
create table t (n UInt64, f Float32, s String, fs FixedString(42), d Decimal(9, 6)) engine=Memory; | ||
create view v (n Nullable(Int32), f Float64) as select n, f from t; | ||
create materialized view mv engine=Null as select * from system.one; | ||
create temporary table tmp (d Date, dt DateTime, dtms DateTime64(3)); | ||
DROP TABLE IF EXISTS t; | ||
DROP VIEW IF EXISTS v; | ||
DROP VIEW IF EXISTS mv; | ||
DROP TABLE IF EXISTS tmp; | ||
|
||
CREATE TABLE t (n UInt64, f Float32, s String, fs FixedString(42), d Decimal(9, 6)) ENGINE=Memory; | ||
CREATE VIEW v (n Nullable(Int32), f Float64) AS SELECT n, f FROM t; | ||
CREATE MATERIALIZED VIEW mv ENGINE=Null AS SELECT * FROM system.one; | ||
CREATE TEMPORARY TABLE tmp (d Date, dt DateTime, dtms DateTime64(3)); | ||
|
||
|
||
-- FIXME #28687 | ||
select * from information_schema.schemata where schema_name ilike 'information_schema'; | ||
SELECT * FROM information_schema.schemata WHERE schema_name ilike 'information_schema'; | ||
-- SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE (TABLE_SCHEMA=currentDatabase() OR TABLE_SCHEMA='') AND TABLE_NAME NOT LIKE '%inner%'; | ||
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE (table_schema=currentDatabase() OR table_schema='') AND table_name NOT LIKE '%inner%'; | ||
select * from information_schema.views where table_schema=currentDatabase(); | ||
SELECT * FROM information_schema.views WHERE table_schema=currentDatabase(); | ||
-- SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE (TABLE_SCHEMA=currentDatabase() OR TABLE_SCHEMA='') AND TABLE_NAME NOT LIKE '%inner%'; | ||
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE (table_schema=currentDatabase() OR table_schema='') AND table_name NOT LIKE '%inner%'; | ||
|
||
drop table t; | ||
drop view v; | ||
-- mixed upper/lowercase schema and table name: | ||
SELECT count() FROM information_schema.TABLES WHERE table_schema=currentDatabase() AND table_name = 't'; | ||
SELECT count() FROM INFORMATION_SCHEMA.tables WHERE table_schema=currentDatabase() AND table_name = 't'; | ||
SELECT count() FROM INFORMATION_schema.tables WHERE table_schema=currentDatabase() AND table_name = 't'; -- { serverError UNKNOWN_DATABASE } | ||
SELECT count() FROM information_schema.taBLES WHERE table_schema=currentDatabase() AND table_name = 't'; -- { serverError UNKNOWN_TABLE } | ||
|
||
drop view mv; | ||
drop view v; | ||
drop table t; |