duckdb going mad...
UNION Type
UNION Type
CREATE TABLE messages(u UNION(num INT, error VARCHAR));FROM-first
INSERT INTO messages VALUES (42);
INSERT INTO messages VALUES ('oh my globs');
-- SELECT clause is optional, SELECT * is implied (if not included)BTW SQL standard already has special syntax for it:
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;
TABLE tbl;COLUMNS Expression
SELECT MIN(COLUMNS(*)), COUNT(*) from obs;List comprehension support
SELECT COLUMNS('val[0-9]+') from obs;
SELECT [x + 1 for x in [1, 2, 3]] AS l;
DuckDB
Announcing DuckDB 0.6.0
The DuckDB team is happy to announce the latest DuckDB version (0.6.0) has been released. This release of DuckDB is named “Oxyura” after the White-headed duck (Oxyura leucocephala) which is an endangered species native to Eurasia. To install the new version…
There will be no singularity
absolutely cursed…
Now in snowflake...
... and in dwh.dev and parsers.dev!
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!
👍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
SELECT count(*) UNION SELECT count(*) OVER () UNION SELECT count(*) WHERE FALSE UNION SELECT count(*) OVER () WHERE FALSE ORDER BY 1
Anonymous Poll
53%
Empty result
19%
0, 1
15%
0, 1, 1
14%
NULL, 0, 1
Forwarded from настенька и графики
Только сейчас заметила, что у ребят из IT Resume можно прямо на сайте пробовать решать sql задачки. Вот задача про когорты, например: https://itresume.ru/problems/sql-cohort
Где еще практиковать SQL бесплатно:
- sql-ex
- sqlbolt
- sql-academy
- stepik тренажер
- w3schools
- sqlzoo
- pgexercises
Где еще практиковать SQL бесплатно:
- sql-ex
- sqlbolt
- sql-academy
- stepik тренажер
- w3schools
- sqlzoo
- pgexercises
> can you write a new Radiohead song about data lineage?
Verse 1:
I’m tracing the data lineage
From its source to where it ends
Every table and column
Every join and every blend
Chorus:
I’m on the path of data lineage
Following the trail of bits and bytes
Through the labyrinth of technology
Where the truth of data lies
Verse 2:
I’m chasing the data lineage
From the past to the present tense
Every calculation and transformation
Every rule and every exception
Chorus:
I’m on the path of data lineage
Following the trail of bits and bytes
Through the labyrinth of technology
Where the truth of data lies
Bridge:
I see the patterns and the connections
I see the errors and the corrections
I see the beauty and the complexity
Of the data lineage
Outro:
I’m on the path of data lineage
Following the trail of bits and bytes
Through the labyrinth of technology
Where the truth of data lies.
Verse 1:
I’m tracing the data lineage
From its source to where it ends
Every table and column
Every join and every blend
Chorus:
I’m on the path of data lineage
Following the trail of bits and bytes
Through the labyrinth of technology
Where the truth of data lies
Verse 2:
I’m chasing the data lineage
From the past to the present tense
Every calculation and transformation
Every rule and every exception
Chorus:
I’m on the path of data lineage
Following the trail of bits and bytes
Through the labyrinth of technology
Where the truth of data lies
Bridge:
I see the patterns and the connections
I see the errors and the corrections
I see the beauty and the complexity
Of the data lineage
Outro:
I’m on the path of data lineage
Following the trail of bits and bytes
Through the labyrinth of technology
Where the truth of data lies.
Building a Postgres database inside of ChatGPT seems to work...
https://twitter.com/ankrgyl/status/1599539317332140032
https://twitter.com/ankrgyl/status/1599539317332140032
{
"data": "beeline meetup: data engineering tools",
"details": {
"date": "December, 20",
"time": "17:00 GMT+3",
"place": "online"
}
}We will discuss creating end-to-end logs, working with Apache NiFi and Apache Flink at the free meetup from beeline and JUG Ru Group.
Registration
beeline.jugru.org
bee.tech. DevOps meetup. Контейнеры, безопасность и миграция
Митап для DevOps-специалистов
> So increasing speed up to 4 times of both in-memory and on-disk sorts in version 15 is one of the main reasons to upgrade.
https://supabase.com/blog/new-in-postgres-15
https://supabase.com/blog/new-in-postgres-15
Supabase
What's new in Postgres 15?
Describes the release of Postgres 15, new features and reasons to use it