TGViewer
There will be no singularity There will be no singularity @nosingularity · 1.96K subscribers
Post #1268 2.65K
SNOWFLAKE: SELECT * ILIKE EXCLUDE REPLACE RENAME

Database vendors are competing to see who can come up with the most features for SELECT *.
Snowflake is not lagging behind and supports as many as 4 modifiers for SELECT *:
ILIKE EXCLUDE REPLACE RENAME

We all know that SELECT * is bad. Now it's 4 times worse :)
Ok, 3 times. You can't use them all together (either ILIKE or EXCLUDE).

But the most disgusting modifier is REPLACE. It allows you to replace one column with any expression. Good luck debugging, dudes :)

What happens to lineage when using these modifiers?
A few examples are collected here

Take a look at one of them:


CREATE TABLE t19(
id INT,
c1 BOOLEAN,
c2 BOOLEAN,
c3 BOOLEAN,
c4 BOOLEAN,
c12c BOOLEAN
);
CREATE TABLE t20(
c5 BOOLEAN,
c6 BOOLEAN
);

CREATE VIEW v20 AS
SELECT
*
ILIKE 'c%'
REPLACE (a.c1 OR b.$2 AS c1)
RENAME c1 AS c0
FROM t19 a, t20 b
;


The result of dwh.dev is on the screenshot.

Thumbs up here!
PS: Just a reminder about our data lineage challenge
  • ❤ 5
  • 👍 1
  • 🤔 1
More from @nosingularity
  1. Sep 19, 2026fixupx.com/KaiLentit/status/2100629518784328013/video/1
  2. Sep 18, 2026fixupx.com/iam_zachi/status/2100679300756435135
  3. Aug 30, 2026photo post
  4. Aug 25, 2026fixupx.com/meganreyno/status/2091918430374957416
  5. Aug 3, 2026Вышла новость, что Andy Pavlo приняли на борт Clickhouse Inc. Энди довольно известная фигу…
  6. Jul 23, 2026fixupx.com/unclebobmartin/status/2080257779395154409
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →