link3280 opened a new issue #1679: URL: https://github.com/apache/incubator-kyuubi/issues/1679
### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) ### Search before asking - [X] I have searched in the [issues](https://github.com/apache/incubator-kyuubi/issues?q=is%3Aissue) and found no similar issues. ### Describe the bug ResultSet checks if the column number of data matches the one in metadata by calling `iterator.next()` to get a sample row, which would make the first row missing in the final result. The bug didn't appear in the tests, because the condition is wrong. Now it checks the column number only if data is empty, which should be another bug. ### Affects Version(s) 1.5.0 ### Kyuubi Server Log Output _No response_ ### Kyuubi Engine Log Output _No response_ ### Kyuubi Server Configurations _No response_ ### Kyuubi Engine Configurations _No response_ ### Additional context _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
