Gopal V created HIVE-20509: ------------------------------ Summary: Plan: fix wasted memory in plans with large partition counts Key: HIVE-20509 URL: https://issues.apache.org/jira/browse/HIVE-20509 Project: Hive Issue Type: Bug Components: Query Planning Reporter: Gopal V
{code} public void addPathToAlias(Path path, String newAlias){ ArrayList<String> aliases = pathToAliases.get(path); if (aliases == null) { aliases = new ArrayList<>(); StringInternUtils.internUriStringsInPath(path); pathToAliases.put(path, aliases); } aliases.add(newAlias.intern()); } {code} ArrayList::DEFAULT_CAPACITY is 10, so this wastes 500 bytes of memory due to the {{new ArrayList<>();}}. -- This message was sent by Atlassian JIRA (v7.6.3#76005)