Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add missing @transient annotations.
  • Loading branch information
JoshRosen committed Jun 6, 2016
commit 99197b7f58cfe17b587d1b3be8d7ad0dd4041151
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ package object expressions {
// It's possible that `attrs` is a linked list, which can lead to bad O(n^2) loops when
// accessing attributes by their ordinals. To avoid this performance penalty, convert the input
// to an array.
private lazy val attrsArray = attrs.toArray
@transient private lazy val attrsArray = attrs.toArray

private lazy val exprIdToOrdinal = {
@transient private lazy val exprIdToOrdinal = {
val arr = attrsArray
val map = Maps.newHashMapWithExpectedSize[ExprId, Int](arr.length)
// Iterate over the array in reverse order so that the final map value is the first attribute
Expand Down