What Should I Do If an Error Is Reported When the WHERE Condition Is Used to Query Tables with Excessive Partitions in Hive?
Question
Caused by: java.io.IOException: Tried to send an out-of-range integer as a 2-byte value: 32970
at org.postgresql.core.PGStream.SendInteger2(PGStream.java:199)
at org.postgresql.core.v3.QueryExecutorImpl.sendParse(QueryExecutorImpl.java:1330)
at org.postgresql.core.v3.QueryExecutorImpl.sendOneQuery(QueryExecutorImpl.java:1601)
at org.postgresql.core.v3.QueryExecutorImpl.sendParse(QueryExecutorImpl.java:1191)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:346) Answer
For queries with partition conditions, HiveServer only queries partitions that meet metadata conditions to avoid full table scanning.
However, the sendParse method of the sendOneQuery API provided by GaussDB limits the the number of partitions to 32767. If the number is exceeded, an exception occurs.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot