ClickHouse/tests/queries/0_stateless/01889_sqlite_read_write.reference

39 lines
1.2 KiB
Plaintext
Raw Normal View History

2021-07-10 11:35:59 +00:00
create database engine
2021-07-10 10:31:21 +00:00
show database tables:
table1
table2
2021-07-10 11:35:59 +00:00
table3
2021-07-13 12:38:37 +00:00
table4
table5
show creare table:
CREATE TABLE SQLite.table1\n(\n `col1` Nullable(String),\n `col2` Nullable(Int16)\n)\nENGINE = SQLite
CREATE TABLE SQLite.table2\n(\n `col1` Nullable(Int32),\n `col2` Nullable(String)\n)\nENGINE = SQLite
2021-07-10 10:31:21 +00:00
describe table:
col1 Nullable(String)
col2 Nullable(Int16)
col1 Nullable(Int32)
2021-07-10 10:31:21 +00:00
col2 Nullable(String)
select *:
line1 1
line2 2
line3 3
1 text1
2 text2
3 text3
2021-07-13 12:38:37 +00:00
test types
CREATE TABLE SQLite.table4\n(\n `a` Nullable(Int32),\n `b` Nullable(Int32),\n `c` Nullable(Int8),\n `d` Nullable(Int16),\n `e` Nullable(Int32),\n `bigint` Nullable(String),\n `int2` Nullable(String),\n `int8` Nullable(String)\n)\nENGINE = SQLite
CREATE TABLE SQLite.table5\n(\n `a` Nullable(String),\n `b` Nullable(String),\n `c` Nullable(Float64),\n `d` Nullable(Float64),\n `e` Nullable(Float64),\n `f` Nullable(Float32)\n)\nENGINE = SQLite
2021-07-10 21:46:32 +00:00
create table engine with table3
CREATE TABLE default.sqlite_table3\n(\n `col1` String,\n `col2` Int32\n)\nENGINE = SQLite
2021-07-12 07:53:52 +00:00
1
not a null 2
2021-07-10 21:46:32 +00:00
3
4
2021-07-13 12:38:37 +00:00
line6 6
7
test table function
line1 1
line2 2
line3 3
2021-07-13 12:38:37 +00:00
line4 4