Skip to content

Commit

Permalink
Close: #35608
Browse files Browse the repository at this point in the history
  • Loading branch information
fm4v committed Apr 3, 2024
1 parent c3f1130 commit 0bc743b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
\N 1
str
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CREATE TABLE testdata (`1` String) ENGINE=MergeTree ORDER BY tuple();
INSERT INTO testdata VALUES ('testdata');

SELECT *
FROM (
SELECT if(isValidUTF8(`1`), NULL, 'error!') AS error_message,
if(error_message IS NULL, 1, 0) AS valid
FROM testdata
)
WHERE valid;

select * from (select 'str' as `1`) where 1;

0 comments on commit 0bc743b

Please sign in to comment.