michael-s-molina commented on PR #28753: URL: https://github.com/apache/superset/pull/28753#issuecomment-2137338360
``` select * from ( select rank() over (partition by table_a order by updated_at desc) as rnk , table_a as metadata_table_a , cast(date_trunc('day', from_unixtime(cast(json_extract(metadata, '$.a.b') as double))) as date) --, CAST(json_extract(metadata,'$.a.c') as VARCHAR) x , cast(json_extract(metadata, '$.a.d.0.f') as varchar) region_0 from ( select rank() over (partition by table_a order by if(metadata is not null, 1, 2)) as rnk_null , * from schema_a.table_b where ds = '{{trino.latest_partition(' schema_a.table_b') }}' and type = 'abc' and substr(deleted_at, 1, 4) = '9999' ) where rnk_null = 1 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org