Тёмный

BigQuery Analytic Function and ROW_NUMBER() 

PracticalGCP
Подписаться 3,2 тыс.
Просмотров 1,2 тыс.
50% 1

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@TheVamos777
@TheVamos777 2 года назад
Was also going to say the Qualify is a nice addition as you can Filter the Analytical functions in the same query. Like HAVING for analytical functions. But you have to have a where clause e.g. SELECT x,y FROM tab1 WHERE TRUE QUALIFY ROW_NUMBER() OVER(PARTITION BY x ORDER BY y DESC)=1
@practicalgcp2780
@practicalgcp2780 2 года назад
This is really good stuff! I wasn’t aware of it. Just had a look, it seems pretty new still in preview. Hope it goes into GA soon. Indeed a very powerful addition!
@philarmstrong3035
@philarmstrong3035 2 года назад
@@practicalgcp2780 Guess what its just gone GA 😁
@cristianivanoff
@cristianivanoff 2 года назад
Nice. I’m always adding my row_number to a qualify ….=1 instead of adding it to a column first and then filtering out. Are there any pros/cons with that?
@practicalgcp2780
@practicalgcp2780 2 года назад
Hi Christian, can you give an example, not sure I understand the syntax you are referring to? If it’s the latest version you want to extract out, filter has to be done after you computed the row number, in other words it needs to be done in a outer query or make the select a CTE (common table expression for any readers don’t know this term) then filter. Is there a way to do the filtering without doing it in two steps?
@cristianivanoff
@cristianivanoff 2 года назад
@@practicalgcp2780 I see you got an answer from Phil. That’s exactly what I meant.
Далее
ETL vs ELT and Transient Data Warehouse
20:33
Centralised Data Sharing using Analytics Hub
31:33
Просмотров 2,9 тыс.
BigQuery to Datastore via Remote Functions
22:20
Просмотров 1,6 тыс.
Cloud Run with IAP
23:10
Просмотров 6 тыс.
DBT Core on Cloud Run Job
39:26
Просмотров 1,8 тыс.
Serverless distributed processing with BigFrames
27:53
Просмотров 2,2 тыс.