There will be no singularity
الذهاب إلى القناة على Telegram
Smartface, technologies and decay @antonrevyako
إظهار المزيد1 958
المشتركون
+124 ساعات
+27 أيام
-230 أيام
أرشيف المشاركات
What result does this query produce?
SELECT count(*) UNION SELECT count(*) OVER () UNION SELECT count(*) WHERE FALSE UNION SELECT count(*) OVER () WHERE FALSE ORDER BY 1
What result does this query produce?
SELECT count(*) UNION SELECT count(*) OVER () UNION SELECT count(*) WHERE FALSE UNION SELECT count(*) OVER () WHERE FALSE ORDER BY 1
What result does this query produce?
``` SELECT count(*) UNION SELECT count(*) OVER () UNION SELECT count(*) WHERE FALSE UNION SELECT count(*) OVER () WHERE FALSE ORDER BY 1 ```
Now in snowflake...
create table t (a int, b int, c int);
create view v as
select * exclude (a) rename (b as d, c as e) from t
;
... and in dwh.dev and parsers.dev!duckdb going mad...
UNION Type
CREATE TABLE messages(u UNION(num INT, error VARCHAR));
INSERT INTO messages VALUES (42);
INSERT INTO messages VALUES ('oh my globs');
FROM-first
-- SELECT clause is optional, SELECT * is implied (if not included) FROM tbl; -- first 5 rows of the table FROM tbl LIMIT 5; -- SELECT can be used after the FROM FROM tbl SELECT l_orderkey; -- insert all data from tbl1 into tbl2 INSERT INTO tbl2 FROM tbl1;BTW SQL standard already has special syntax for it:
TABLE tbl;COLUMNS Expression
SELECT MIN(COLUMNS(*)), COUNT(*) from obs;
SELECT COLUMNS('val[0-9]+') from obs;
List comprehension support
SELECT [x + 1 for x in [1, 2, 3]] AS l;
Any of you in St. Petersburg now? Let me know, there is a surprise for you :)
A few PG hacks from Alibaba (thx to @olegkovalov)
1) PostgreSQL Graph Search Practices - 10 Billion-Scale Graph with Millisecond Response
https://www.alibabacloud.com/blog/postgresql-graph-search-practices---10-billion-scale-graph-with-millisecond-response_595039
2) Social Friend Relationship System Practice in PostgreSQL - Accelerating Queries of Positive and Negative Relationships
https://www.alibabacloud.com/blog/595043
MySQL HeatWave Performance Comparison
- 11X faster than Redshift
- 9X faster than Snowflake
- 9X faster than BigQuery
- 3X faster than Synapse
https://www.oracle.com/mysql/heatwave/performance/
متاح الآن! بحث تيليغرام 2025 — أهم رؤى العام 
