forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 1
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#76497 from ClickHouse/better-constraint…
…-exception Better exceptions when invalid constraint is used
- Loading branch information
Showing
4 changed files
with
58 additions
and
11 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
Empty file.
3 changes: 3 additions & 0 deletions
3
tests/queries/0_stateless/03362_optimize_using_constraints_type_mismatch.sql
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SET optimize_using_constraints = 1, convert_query_to_cnf = 1, enable_analyzer=1; | ||
CREATE TABLE t0 (c0 String, c1 String, CONSTRAINT c ASSUME (c0 = '2000-01-01 00:00:00'::DateTime64 AND c1 = '')) ENGINE = Memory; | ||
SELECT 1 FROM t0 WHERE t0.c0 = t0.c0; -- { serverError TYPE_MISMATCH } |