Skip to content

[CALCITE-3237] IndexOutOfBoundsException in Expression writer#1364

Closed
snallapa wants to merge 4 commits intoapache:masterfrom
snallapa:CALCITE-3237
Closed

[CALCITE-3237] IndexOutOfBoundsException in Expression writer#1364
snallapa wants to merge 4 commits intoapache:masterfrom
snallapa:CALCITE-3237

Conversation

@snallapa
Copy link

@snallapa snallapa commented Aug 8, 2019

ExpressionWriter.begin was using ArrayList.get on the Indent which has an initial capacity of 20. I ran into issues where this limit was reached and thought this should be .of which ensures the capacity

@wangzzu
Copy link
Contributor

wangzzu commented Aug 8, 2019

LGTM

@asfgit asfgit closed this in 996cdd0 Aug 9, 2019
@snallapa snallapa deleted the CALCITE-3237 branch September 6, 2019 20:16
wangxlong pushed a commit to wangxlong/calcite that referenced this pull request Feb 13, 2020
…d Java code from linq4j (Sahith Nallapareddy)

The problem was that ExpressionWriter was using a list of indent
strings but it did not resize the list for very large indents. The
solution was to use Avatica's Spacer class.

Close apache#1364
jamesstarr pushed a commit to jamesstarr/calcite that referenced this pull request Aug 28, 2025
…d Java code from linq4j (Sahith Nallapareddy)

The problem was that ExpressionWriter was using a list of indent
strings but it did not resize the list for very large indents. The
solution was to use Avatica's Spacer class.

Close apache#1364

Change-Id: If9f8705f949e8d547a32aecca48a1c0928d0a525
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants