Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
KochetovNicolai committed Jan 22, 2021
1 parent 41afc59 commit 70b4199
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/queries/0_stateless/01660_second_extremes_bug.reference
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"meta":
[
{
"name": "a",
"type": "String"
}
],

"data":
[

],

"rows": 0
}
10 changes: 10 additions & 0 deletions tests/queries/0_stateless/01660_second_extremes_bug.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DROP TABLE IF EXISTS t;
DROP TABLE IF EXISTS t_v;

CREATE TABLE t ( a String ) ENGINE = Memory();
CREATE VIEW t_v AS SELECT * FROM t;
SET output_format_write_statistics = 0;
SELECT * FROM t_v FORMAT JSON SETTINGS extremes = 1;

DROP TABLE IF EXISTS t;
DROP TABLE IF EXISTS t_v;

0 comments on commit 70b4199

Please sign in to comment.