You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, when troubleshooting an issue related to the PruneSubfieldsForComplexType optimization, I found that this optimization doesn't seem to be helpful for array types. However, MarkSubfieldsOptVisitor still processes array types and then records ComplexTypeAccessPaths. Is it possible to set array types to be skipped?
@Override
public Void visitVariableReference(ColumnRefOperator variable, Context context) {
if (variable.getType().isComplexType()) {
ComplexTypeAccessPaths accessPaths = new ComplexTypeAccessPaths(ImmutableList.copyOf(complexTypeAccessPaths));
if (visitedAccessGroup == null) {
context.addAccessPaths(variable, accessPaths);
} else {
/*
* If specific ColumnRefOperator has visited access group, we should merge it.
*/
context.addAccessPaths(variable, accessPaths, visitedAccessGroup);
}
}
return null;
}
The text was updated successfully, but these errors were encountered:
Enhancement
Recently, when troubleshooting an issue related to the PruneSubfieldsForComplexType optimization, I found that this optimization doesn't seem to be helpful for array types. However, MarkSubfieldsOptVisitor still processes array types and then records ComplexTypeAccessPaths. Is it possible to set array types to be skipped?
The text was updated successfully, but these errors were encountered: