Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Add a variant of CsvTable that can be streamed. It would serve as an example of how to write stream adapters.
It would be like the CSV adapter, but watches a file and reports records added to the end of the file (like the tail command).
You’d have to change CsvTable to implement StreamableTable, and implement the Table stream() method to return a variant of the table that is in “follow” mode.
It would probably be implemented by a variant of CsvEnumerator, but it is getting its input in bursts, as the file is appended to.
You would still be able to use this adapter to read historical data from the CSV file. Appending records to the file would make a nice demo.
Attachments
Issue Links
- is depended upon by
-
CALCITE-1307 Further work on streaming CSV table
- Open
- is related to
-
CALCITE-849 Streams/Slow iterators dont close on statement close
- Open
-
CALCITE-30 Implement Statement.cancel method
- Closed
-
CALCITE-884 File/web adapter
- Closed
- relates to
-
CALCITE-872 Add support for aborting the query optimization process
- Open