calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Yates <>
Subject streaming support for infinite streams
Date Tue, 21 Jul 2015 15:58:31 GMT

I've only been using Calcite for a short while and am trying to hook up my
own streaming table. The problem I'm running into seems be, at its core, an
impedance mismatch.

Streams, by their very nature, are expected to be infinite (this what
Julian is getting at in the stream tutorial
<>). As such, they
should send incremental results to along to the ResultSet.

However, when running a simple query (e.g. select stream * from orders) and
the StreamableTable returning a Enumerable<Object[]> from an infinite
stream using the standard Linq4j tools, you end up quickly trying to store
all the values of the stream in a ListSink in a TableScanNode.

It seems like the TableScanNode needs to be made stream aware and the sink
needs to forward results onward.

Here is a simple test
that verifies an infinite stream infinitely adds data to the ListSink (drop
a breakpoint in TableScanNode to see it in action).

As I mentioned, I'm still pretty new to Calcite, so any pointers to my
being completely wrong would be much appreciated (or I'm happy to follow up
in a JIRA if this looks like a bug).

Jesse Yates

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message