[
https://issues.apache.org/jira/browse/HIVE-11316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14643608#comment-14643608
]
Hari Sankar Sivarama Subramaniyan commented on HIVE-11316:
----------------------------------------------------------
Looked at the errors in the latest patch and investigated them. It seems that
the approach in patch#4 and above is quite buggy. Spent almost 2.5 hours trying
to work around this, but it seems like either we will giveup on performance or
on correctness if we try to invalidate the memoize string at any point.
The issue happens when an inner node of the tree is modified, we need to inform
all the nodes associated with the Tree to invalidate the cache. This brings us
back to square 1 where we need to traverse the entire tree for each
invalidation.
I think we should revert back to patch#3, where we dont touch the original
toStringTree() call and introduce and new interface toStringTree(boolean
useMemoizedString) which allows callers to specify whether to use a memoized
string or not. [~jcamachorodriguez] can you provide a feedback and say whether
I can rebase to patch#3.
Thanks
Hari
> Use datastructure that doesnt duplicate any part of string for
> ASTNode::toStringTree()
> --------------------------------------------------------------------------------------
>
> Key: HIVE-11316
> URL: https://issues.apache.org/jira/browse/HIVE-11316
> Project: Hive
> Issue Type: Bug
> Reporter: Hari Sankar Sivarama Subramaniyan
> Assignee: Hari Sankar Sivarama Subramaniyan
> Attachments: HIVE-11316-branch-1.0.patch,
> HIVE-11316-branch-1.2.patch, HIVE-11316.1.patch, HIVE-11316.2.patch,
> HIVE-11316.3.patch, HIVE-11316.4.patch, HIVE-11316.5.patch, HIVE-11316.6.patch
>
>
> HIVE-11281 uses an approach to memoize toStringTree() for ASTNode. This jira
> is suppose to alter the string memoization to use a different data structure
> that doesn't duplicate any part of the string so that we do not run into OOM.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)