palashc commented on code in PR #2054: URL: https://github.com/apache/phoenix/pull/2054#discussion_r1915486931
########## phoenix-core-client/src/main/java/org/apache/phoenix/util/TupleUtil.java: ########## @@ -210,4 +219,35 @@ public static int write(Tuple result, DataOutput out) throws IOException { } return size; } + + /** + * Convert the given Tuple containing list of Cells to ResultSet with similar effect as if + * SELECT * FROM <table-name> is queried. + * + * @param toProject Tuple to be projected. + * @param tableName Table name. + * @param conn Phoenix Connection object. + * @return ResultSet for the give single row. + * @throws SQLException If any SQL operation fails. + */ + public static ResultSet getResultSet(Tuple toProject, String tableName, Connection conn) + throws SQLException { + try (PhoenixResultSet resultSet = (PhoenixResultSet) conn.createStatement() + .executeQuery("SELECT * FROM " + tableName)) { Review Comment: Got it, since the real execution of it happens during a `next` call? -- 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: issues-unsubscr...@phoenix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org