Open spena opened 3 years ago
@MichaelDrogalis What do you think about this behavior? What should be correct?
I think this is a known bug. @mjsax has more context. I think the idea was that we needed to not make tables writable here, right?
This is probably along the lines of #4177 - @mjsax I added you to the ticket since it falls into the language fundamentals bucket. We probably want to prohibit these type of insert statements.
Agreed. It does not make sense to insert into the result (that should be modeled as a MV, not a table) of a persistent query.
Describe the bug When working with pull queries, I noticed that inserting data to a table using
INSERT ... VALUES
is not returned when querying the table using a pull query.I'm not sure if the bug is that pull queries should read the updated table, or if materialized views should not allow any inserts. Anyway, the current behavior allows inserts into a MV. And those inserts are read by Push queries, but not by Pull queries.
To Reproduce I run this with the latest master (6.2.0) version.
Create the stream, the MV; and insert a row into the stream:
The row can be queried using push and pull queries:
If I insert a row into the MV, I can query it with push queries, but pull queries show the previous row:
I waited a few minutes to see if some cache should be updated, but I still got the same row.
Expected behavior I don't know what the behavior should be.