Skip to content

Instantly share code, notes, and snippets.

2019-05-08 06:02:53,105 (Thread-2): SQL status: SELECT in 4.32 seconds
2019-05-08 06:02:53,108 (Thread-2): Writing runtime SQL for node "model.sherlock.cf_trackerv2_action_logs"
2019-05-08 06:02:53,109 (Thread-2): Using redshift connection "cf_trackerv2_action_logs".
2019-05-08 06:02:53,109 (Thread-2): On cf_trackerv2_action_logs:
delete
from "mango"."dbt"."cf_trackerv2_action_logs"
where (my_key) in (
select (mykey)
from "cf_trackerv2_action_logs__dbt_incremental_tmp"
);
@darthburrito
darthburrito / bootstrap.sh
Last active October 4, 2017 21:12
search and retrieve documents having max timestamp
# cleanup
curl -XDELETE "http://localhost:9200/test_max_*"
# create template with alias
curl -XPOST "http://localhost:9200/_template/test_max_template" -H 'Content-Type: application/json' -d'
{
"template":"test_max_*",
"mappings":{
"testtype":{
"properties": {