There must be a way to somehow serialize ResultSet that we will get after execution of select query on one node to send it to another. After that it must be inserted to the same table in destination node but to in memory database (here a query to create this table will be needed from master).
(*) this is the point of this issue
Select process will look like that:
Get create table statements from master for needed tables
Create them in in memory database
Execute selects (select * from
) in all nodes pointed by master (these which contain that data) for all needed tables
Serialize somehow ResultSets and send it to coordinating node (*)
Coordinating node inserts (unserialized data) to created tables in in memory db performing distinct on our internal id
Perform sql query (our SELECT from client) on in memory db, then return result
There must be a way to somehow serialize ResultSet that we will get after execution of select query on one node to send it to another. After that it must be inserted to the same table in destination node but to in memory database (here a query to create this table will be needed from master).
(*) this is the point of this issue
Select process will look like that:
Solved with
SerializableResultSet
class. Issue done.