[ https://issues.apache.org/jira/browse/HIVE-4545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13887426#comment-13887426 ]
Thejas M Nair commented on HIVE-4545: ------------------------------------- [~hagleitn] I agree. I think I should not add a new configuration for this. Unformatted output is right for HS2 and formatted output is right for hive cli. But right now there is no way to know if the action is under CLI or HS2. I am thinking of adding a SessionState method that can be set and other parts of code can use to determine if its under CLI or HS2. > HS2 should return describe table results without space padding > -------------------------------------------------------------- > > Key: HIVE-4545 > URL: https://issues.apache.org/jira/browse/HIVE-4545 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Reporter: Thejas M Nair > Assignee: Thejas M Nair > Attachments: HIVE-4545-1.patch, HIVE-4545.2.patch, HIVE-4545.3.patch, > HIVE-4545.4.patch > > > HIVE-3140 changed behavior of 'DESCRIBE table;' to be like 'DESCRIBE > FORMATTED table;'. HIVE-3140 introduced changes to not print header in > 'DESCRIBE table;'. But jdbc/odbc calls still get fields padded with space for > the 'DESCRIBE table;' query. > As the jdbc/odbc results are not for direct human consumption the space > padding should not be done for hive server2. -- This message was sent by Atlassian JIRA (v6.1.5#6160)