Hi team, I am trying to join 3 or more tables, it ...
# troubleshooting
s
Hi team, I am trying to join 3 or more tables, it has a lot of data aprox 2 million column or more each table, but I get this kind of message, it seems like it exceeds the memory limit, is there any way to increase the memory limit? And I also want to ask about the file injection from kafka, is there any simpler way to extract the data from kafka without setting up the schemas and table, if so I will be so grateful for it. Thank you.
Copy code
Error Code: 200

QueryExecutionError:
Received error query execution result block: {245=Cannot build in memory hash table for join operator, reach number of rows limit: 1048576. Consider increasing the limit for the maximum number of rows in a join either via the query option 'maxRowsInJoin' or the 'max_rows_in_join' hint in the 'joinOptions'. Alternatively, if partial results are acceptable, the join overflow mode can be set to 'BREAK' either via the query option 'joinOverflowMode' or the 'join_overflow_mode' hint in the 'joinOptions'. Furthermore, if there is a large disparity in the size of the two tables being joined, use the smaller table as the right input instead of the left.
ProcessingException(errorCode:245, message:Cannot build in memory hash table for join operator, reach number of rows limit: 1048576. Consider increasing the limit for the maximum number of rows in a join either via the query option 'maxRowsInJoin' or the 'max_rows_in_join' hint in the 'joinOptions'. Alternatively, if partial results are acceptable, the join overflow mode can be set to 'BREAK' either via the query option 'joinOverflowMode' or the 'join_overflow_mode' hint in the 'joinOptions'. Furthermore, if there is a large disparity in the size of the two tables being joined, use the smaller table as the right input instead of the left.)
	at org.apache.pinot.query.runtime.operator.HashJoinOperator.buildBroadcastHashTable(HashJoinOperator.java:237)
	at org.apache.pinot.query.runtime.operator.HashJoinOperator.getNextBlock(HashJoinOperator.java:218)
	at org.apache.pinot.query.runtime.operator.MultiStageOperator.nextBlock(MultiStageOperator.java:81)
	at org.apache.pinot.query.runtime.operator.TransformOperator.getNextBlock(TransformOperator.java:98)}
org.apache.pinot.query.service.dispatch.QueryDispatcher.runReducer(QueryDispatcher.java:306)
org.apache.pinot.query.service.dispatch.QueryDispatcher.submitAndReduce(QueryDispatcher.java:96)
org.apache.pinot.broker.requesthandler.MultiStageBrokerRequestHandler.handleRequest(MultiStageBrokerRequestHandler.java:219)
org.apache.pinot.broker.requesthandler.BaseBrokerRequestHandler.handleRequest(BaseBrokerRequestHandler.java:133)
b
Hiya. Is there really 2 mil columns in each table or did you mean rows ? You should be able to change the limit with :
Copy code
SET maxRowsInJoin=new_value;
select ...
s
ow yeah what I mean is rows, thanks for the insight. Could you help me to join 5 tables in to 1 with the aprox 2 mill rows each table? given there are a,b,c,d,e tables.
I encountered another problem, so I was trying to join the table, but it doesn't give me any result. Is it because I only have 1 server, 1 broker, 1 tenant?
b
My guess would be that at least on join's condition is never satisfied. Try joining fewer tables until you get non-empty result.
s
Turns out there is a problem in the table.json when I inject it from kafka, thank you for your advice.