Slackbot
06/06/2023, 2:59 PMJohn Kowtko
06/06/2023, 4:08 PMselect emp_id, emp_name, ..., emp_othercols, max(term_date) term_date
from employees
group by emp_id, emp_name, ..., emp_othercols
having term_date is null
2. Druid segments are immutable once created ... however you can replace a time chunk with data pulled from the same time chunk and modified ... and you can also overwrite a time chunk with a smaller time chunk that contains the data you want to update, so you don't have to replace the entire time chunk. If you want more info about this let me know and I can send you some more info on this.Ashok Kumar Ragupathi
06/06/2023, 4:30 PMJohn Kowtko
06/06/2023, 5:07 PMVadim
06/06/2023, 10:04 PMemployee_id => "true"
that only contains deleted employees then you could do SELECT * FROM employee WHERE LOOKUP(id, 'deleted_employees') <> 'true'
Vadim
06/06/2023, 10:05 PMVadim
06/06/2023, 10:05 PMVadim
06/06/2023, 10:07 PMAshok Kumar Ragupathi
06/07/2023, 10:29 AMAshok Kumar Ragupathi
06/07/2023, 10:31 AM