Created 01-18-2023 02:56 AM
I want to poll an Impala table using SQL queries and only want to retrieve data records added since I last polled. This would be using a Date/Timestamp column in the table. Does anyone know how to achieve this?
I am happy to hold the last Date/Timestamp retrieved, in my source system
Created 01-19-2023 08:20 AM
Hi @StuartM , I know it's not a direct answer, but this requirement sounds more like a good call for Kafka - which inherently supports the idea of "consumer offsets".
Created 02-02-2023 12:08 AM
@StuartM, Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.
Regards,
Vidya Sargur,Created on 04-29-2024 11:43 AM - edited 04-29-2024 11:51 AM
To retrieve data records after crm enrichment added since the last time you polled an Impala table using a Date/Timestamp column, you can use a SQL query with a WHERE clause filtering for records with timestamps greater than the last timestamp you retrieved. Here's a basic example assuming your timestamp column is named timestamp_column:
SELECT *
FROM your_table
WHERE timestamp_column > 'last_poll_timestamp';
Replace 'last_poll_timestamp' with the actual timestamp value you stored from your last poll. Make sure the timestamp format matches the format stored in your table.
Here's a step-by-step guide: