[jira] [Updated] (HIVE-7599) NPE in MergeTask#main() when -format is absent
[ https://issues.apache.org/jira/browse/HIVE-7599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-7599: -- Status: Patch Available (was: Open) NPE in MergeTask#main() when -format is absent -- Key: HIVE-7599 URL: https://issues.apache.org/jira/browse/HIVE-7599 Project: Hive Issue Type: Bug Reporter: Ted Yu Priority: Minor Attachments: HIVE-7599.patch When '-format' is absent from commandline, the following call would result in NPE (format is initialized to null): {code} if (format.equals(rcfile)) { mergeWork = new MergeWork(inputPaths, new Path(outputDir), RCFileInputFormat.class); {code} -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-7599) NPE in MergeTask#main() when -format is absent
[ https://issues.apache.org/jira/browse/HIVE-7599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-7599: -- Attachment: HIVE-7599.patch When the format object is null, the printUsage() method will be called. NPE in MergeTask#main() when -format is absent -- Key: HIVE-7599 URL: https://issues.apache.org/jira/browse/HIVE-7599 Project: Hive Issue Type: Bug Reporter: Ted Yu Priority: Minor Attachments: HIVE-7599.patch When '-format' is absent from commandline, the following call would result in NPE (format is initialized to null): {code} if (format.equals(rcfile)) { mergeWork = new MergeWork(inputPaths, new Path(outputDir), RCFileInputFormat.class); {code} -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-7172) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion()
[ https://issues.apache.org/jira/browse/HIVE-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-7172: -- Attachment: HIVE-7172.patch Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion() - Key: HIVE-7172 URL: https://issues.apache.org/jira/browse/HIVE-7172 Project: Hive Issue Type: Bug Reporter: Ted Yu Priority: Minor Attachments: HIVE-7172.patch {code} ResultSet res = stmt.executeQuery(versionQuery); if (!res.next()) { throw new HiveMetaException(Didn't find version data in metastore); } String currentSchemaVersion = res.getString(1); metastoreConn.close(); {code} When HiveMetaException is thrown, metastoreConn.close() would be skipped. stmt is not closed upon return from the method. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-7172) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion()
[ https://issues.apache.org/jira/browse/HIVE-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-7172: -- Attachment: (was: HIVE-7172.patch) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion() - Key: HIVE-7172 URL: https://issues.apache.org/jira/browse/HIVE-7172 Project: Hive Issue Type: Bug Reporter: Ted Yu Priority: Minor Attachments: HIVE-7172.patch {code} ResultSet res = stmt.executeQuery(versionQuery); if (!res.next()) { throw new HiveMetaException(Didn't find version data in metastore); } String currentSchemaVersion = res.getString(1); metastoreConn.close(); {code} When HiveMetaException is thrown, metastoreConn.close() would be skipped. stmt is not closed upon return from the method. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-7172) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion()
[ https://issues.apache.org/jira/browse/HIVE-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-7172: -- Attachment: (was: HIVE-7172.patch) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion() - Key: HIVE-7172 URL: https://issues.apache.org/jira/browse/HIVE-7172 Project: Hive Issue Type: Bug Reporter: Ted Yu Priority: Minor {code} ResultSet res = stmt.executeQuery(versionQuery); if (!res.next()) { throw new HiveMetaException(Didn't find version data in metastore); } String currentSchemaVersion = res.getString(1); metastoreConn.close(); {code} When HiveMetaException is thrown, metastoreConn.close() would be skipped. stmt is not closed upon return from the method. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-7172) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion()
[ https://issues.apache.org/jira/browse/HIVE-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-7172: -- Attachment: HIVE-7172.patch Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion() - Key: HIVE-7172 URL: https://issues.apache.org/jira/browse/HIVE-7172 Project: Hive Issue Type: Bug Reporter: Ted Yu Priority: Minor Attachments: HIVE-7172.patch {code} ResultSet res = stmt.executeQuery(versionQuery); if (!res.next()) { throw new HiveMetaException(Didn't find version data in metastore); } String currentSchemaVersion = res.getString(1); metastoreConn.close(); {code} When HiveMetaException is thrown, metastoreConn.close() would be skipped. stmt is not closed upon return from the method. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-7172) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion()
[ https://issues.apache.org/jira/browse/HIVE-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-7172: -- Attachment: HIVE-7172.patch Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion() - Key: HIVE-7172 URL: https://issues.apache.org/jira/browse/HIVE-7172 Project: Hive Issue Type: Bug Reporter: Ted Yu Priority: Minor Attachments: HIVE-7172.patch {code} ResultSet res = stmt.executeQuery(versionQuery); if (!res.next()) { throw new HiveMetaException(Didn't find version data in metastore); } String currentSchemaVersion = res.getString(1); metastoreConn.close(); {code} When HiveMetaException is thrown, metastoreConn.close() would be skipped. stmt is not closed upon return from the method. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-7172) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion()
[ https://issues.apache.org/jira/browse/HIVE-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-7172: -- Attachment: (was: HIVE-7172.patch) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion() - Key: HIVE-7172 URL: https://issues.apache.org/jira/browse/HIVE-7172 Project: Hive Issue Type: Bug Reporter: Ted Yu Priority: Minor Attachments: HIVE-7172.patch {code} ResultSet res = stmt.executeQuery(versionQuery); if (!res.next()) { throw new HiveMetaException(Didn't find version data in metastore); } String currentSchemaVersion = res.getString(1); metastoreConn.close(); {code} When HiveMetaException is thrown, metastoreConn.close() would be skipped. stmt is not closed upon return from the method. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-7172) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion()
[ https://issues.apache.org/jira/browse/HIVE-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-7172: -- Attachment: HIVE-7172.patch Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion() - Key: HIVE-7172 URL: https://issues.apache.org/jira/browse/HIVE-7172 Project: Hive Issue Type: Bug Reporter: Ted Yu Priority: Minor Attachments: HIVE-7172.patch {code} ResultSet res = stmt.executeQuery(versionQuery); if (!res.next()) { throw new HiveMetaException(Didn't find version data in metastore); } String currentSchemaVersion = res.getString(1); metastoreConn.close(); {code} When HiveMetaException is thrown, metastoreConn.close() would be skipped. stmt is not closed upon return from the method. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-7172) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion()
[ https://issues.apache.org/jira/browse/HIVE-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-7172: -- Attachment: (was: HIVE-7172.patch) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion() - Key: HIVE-7172 URL: https://issues.apache.org/jira/browse/HIVE-7172 Project: Hive Issue Type: Bug Reporter: Ted Yu Priority: Minor Attachments: HIVE-7172.patch {code} ResultSet res = stmt.executeQuery(versionQuery); if (!res.next()) { throw new HiveMetaException(Didn't find version data in metastore); } String currentSchemaVersion = res.getString(1); metastoreConn.close(); {code} When HiveMetaException is thrown, metastoreConn.close() would be skipped. stmt is not closed upon return from the method. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-7172) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion()
[ https://issues.apache.org/jira/browse/HIVE-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-7172: -- Status: Patch Available (was: Open) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion() - Key: HIVE-7172 URL: https://issues.apache.org/jira/browse/HIVE-7172 Project: Hive Issue Type: Bug Reporter: Ted Yu Priority: Minor {code} ResultSet res = stmt.executeQuery(versionQuery); if (!res.next()) { throw new HiveMetaException(Didn't find version data in metastore); } String currentSchemaVersion = res.getString(1); metastoreConn.close(); {code} When HiveMetaException is thrown, metastoreConn.close() would be skipped. stmt is not closed upon return from the method. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-7172) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion()
[ https://issues.apache.org/jira/browse/HIVE-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-7172: -- Attachment: HIVE-7172 Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion() - Key: HIVE-7172 URL: https://issues.apache.org/jira/browse/HIVE-7172 Project: Hive Issue Type: Bug Reporter: Ted Yu Priority: Minor Attachments: HIVE-7172 {code} ResultSet res = stmt.executeQuery(versionQuery); if (!res.next()) { throw new HiveMetaException(Didn't find version data in metastore); } String currentSchemaVersion = res.getString(1); metastoreConn.close(); {code} When HiveMetaException is thrown, metastoreConn.close() would be skipped. stmt is not closed upon return from the method. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-7172) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion()
[ https://issues.apache.org/jira/browse/HIVE-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-7172: -- Attachment: HIVE-7172.patch Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion() - Key: HIVE-7172 URL: https://issues.apache.org/jira/browse/HIVE-7172 Project: Hive Issue Type: Bug Reporter: Ted Yu Priority: Minor Attachments: HIVE-7172.patch {code} ResultSet res = stmt.executeQuery(versionQuery); if (!res.next()) { throw new HiveMetaException(Didn't find version data in metastore); } String currentSchemaVersion = res.getString(1); metastoreConn.close(); {code} When HiveMetaException is thrown, metastoreConn.close() would be skipped. stmt is not closed upon return from the method. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-7172) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion()
[ https://issues.apache.org/jira/browse/HIVE-7172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-7172: -- Attachment: (was: HIVE-7172) Potential resource leak in HiveSchemaTool#getMetaStoreSchemaVersion() - Key: HIVE-7172 URL: https://issues.apache.org/jira/browse/HIVE-7172 Project: Hive Issue Type: Bug Reporter: Ted Yu Priority: Minor Attachments: HIVE-7172.patch {code} ResultSet res = stmt.executeQuery(versionQuery); if (!res.next()) { throw new HiveMetaException(Didn't find version data in metastore); } String currentSchemaVersion = res.getString(1); metastoreConn.close(); {code} When HiveMetaException is thrown, metastoreConn.close() would be skipped. stmt is not closed upon return from the method. -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-6803) /auth
[ https://issues.apache.org/jira/browse/HIVE-6803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-6803: -- Summary: /auth (was: Hive mutil group by results are not normal) /auth - Key: HIVE-6803 URL: https://issues.apache.org/jira/browse/HIVE-6803 Project: Hive Issue Type: Bug Components: Query Processor Affects Versions: 0.9.0 Reporter: 闫昆 Hi all I'm learning hive,I am by looking at the following two SQL syntax tree , there is a problem。 predicate: expr: ((qq rlike '.*(baidu).*') or (qq rlike '.*(sina).*')) type: boolean explain from telno_qq insert overwrite local directory '/tmp/s' select telno,count(1) where qq RLIKE '.*(baidu).*' group by telno insert overwrite local directory '/tmp/d' select telno,count(1) where qq RLIKE '.*(sina).*' group by telno; predicate: expr: (qq rlike '.*(baidu).*') type: boolean predicate: expr: (qq rlike '.*(sina).*') type: boolean explain from telno_qq insert overwrite local directory '/tmp/s' select telno where qq RLIKE '.*(baidu).*' insert overwrite local directory '/tmp/d' select telno where qq RLIKE '.*(sina).*' ; The first query plan will satisfy the conditions of the two select data into / tmp / s and / tmp / d them, but actually I just want to / tmp / s data exist only baidu , / tmp / d exists only sina data . But the result is to meet or sina baidu records are placed in / tmp / s and / tmp / d both of them went to the temporary directory . The second query plan is right , and the query result is correct -- This message was sent by Atlassian JIRA (v6.2#6252)
[jira] [Updated] (HIVE-6803) Hive mutil group by results are not normal
[ https://issues.apache.org/jira/browse/HIVE-6803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] DJ Choi updated HIVE-6803: -- Summary: Hive mutil group by results are not normal (was: /auth) Hive mutil group by results are not normal --- Key: HIVE-6803 URL: https://issues.apache.org/jira/browse/HIVE-6803 Project: Hive Issue Type: Bug Components: Query Processor Affects Versions: 0.9.0 Reporter: 闫昆 Hi all I'm learning hive,I am by looking at the following two SQL syntax tree , there is a problem。 predicate: expr: ((qq rlike '.*(baidu).*') or (qq rlike '.*(sina).*')) type: boolean explain from telno_qq insert overwrite local directory '/tmp/s' select telno,count(1) where qq RLIKE '.*(baidu).*' group by telno insert overwrite local directory '/tmp/d' select telno,count(1) where qq RLIKE '.*(sina).*' group by telno; predicate: expr: (qq rlike '.*(baidu).*') type: boolean predicate: expr: (qq rlike '.*(sina).*') type: boolean explain from telno_qq insert overwrite local directory '/tmp/s' select telno where qq RLIKE '.*(baidu).*' insert overwrite local directory '/tmp/d' select telno where qq RLIKE '.*(sina).*' ; The first query plan will satisfy the conditions of the two select data into / tmp / s and / tmp / d them, but actually I just want to / tmp / s data exist only baidu , / tmp / d exists only sina data . But the result is to meet or sina baidu records are placed in / tmp / s and / tmp / d both of them went to the temporary directory . The second query plan is right , and the query result is correct -- This message was sent by Atlassian JIRA (v6.2#6252)