abstractdog commented on code in PR #5085: URL: https://github.com/apache/hive/pull/5085#discussion_r1499070972
########## standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/utils/TestTxnDbUtil.java: ########## @@ -338,10 +338,24 @@ public static int countQueryAgent(Configuration conf, String countQuery) throws closeResources(conn, stmt, rs); } } + public static String queryToString(Configuration conf, String query) throws Exception { return queryToString(conf, query, true); } - public static String queryToString(Configuration conf, String query, boolean includeHeader) + + public static String queryToString(Configuration conf, String query, boolean includeHeader) throws Exception { + return queryToString(conf, query, includeHeader, " "); + } + + public static String queryToCsv(Configuration conf, String query) throws Exception { Review Comment: what are the callers of this new queryToCsv method? I cannot see it used also, basically, I like that you introduced new convenience util methods, however, I cannot see their value added to the original queryToString: what if I would like to create a CSV with ";" separator? currently, I should call queryToString with columnSeparator=";" so I believe that queryToCsv doesn't add more value, it just express an assumption that CSV is always written with comma separators -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org