There is a couple of comments to
MDEV-5535 which makes me think that something does not work quite as expected:
Sergei Petrunia added a comment - 2015-11-26 03:33
[No MDEV yet] Materialized view processing. Currently, if a materialized VIEW is used multiple times in the query, several temporary tables will be created and populated.
Sergei Golubchik added a comment - 2015-11-26 19:08
Nirbhay Choubey, note the comment above. It means that one should be able to reopen internal temporary tables too.
Currently it looks like it works the old way (or maybe I misunderstood what the new way should be):
If it's indeed not the desired behavior, I'm not sure whether it's because something wasn't done in the scope of
MDEV-5535, or because it requires additional changes in view processing. In the latter case, please feel free to convert this bug into a task and edit summary/description as necessary.