Skip to content

Commit 4d261c6

Browse files
committed
upgrade to 3.0.1
1 parent 4417824 commit 4d261c6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ scalaVersion := "2.12.10"
88

99
spName := "amplab/opaque"
1010

11-
sparkVersion := "3.0.0"
11+
sparkVersion := "3.0.1"
1212

1313
sparkComponents ++= Seq("core", "sql", "catalyst")
1414

src/main/scala/edu/berkeley/cs/rise/opaque/Utils.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ object Utils extends Logging {
11641164
// To avoid the need for special handling of the grouping columns, we transform the grouping expressions
11651165
// into AggregateExpressions that collect the first seen value.
11661166
val aggGroupingExpressions = groupingExpressions.map {
1167-
case e: NamedExpression => AggregateExpression(First(e, Literal(false)), Complete, false)
1167+
case e: NamedExpression => AggregateExpression(First(e, false), Complete, false)
11681168
}
11691169
val aggregateExpressions = aggGroupingExpressions ++ aggExpressions
11701170

@@ -1199,6 +1199,7 @@ object Utils extends Logging {
11991199
input: Seq[Attribute],
12001200
aggSchema: Seq[Attribute],
12011201
concatSchema: Seq[Attribute]): Int = {
1202+
println(e.aggregateFunction)
12021203
(e.aggregateFunction: @unchecked) match {
12031204

12041205
case avg @ Average(child) =>
@@ -1293,7 +1294,7 @@ object Utils extends Logging {
12931294
evaluateExprs.map(e => flatbuffersSerializeExpression(builder, e, aggSchema)).toArray)
12941295
)
12951296

1296-
case f @ First(child, Literal(false, BooleanType)) =>
1297+
case f @ First(child, false) =>
12971298
val first = f.aggBufferAttributes(0)
12981299
val valueSet = f.aggBufferAttributes(1)
12991300

@@ -1331,7 +1332,7 @@ object Utils extends Logging {
13311332
builder,
13321333
evaluateExprs.map(e => flatbuffersSerializeExpression(builder, e, aggSchema)).toArray))
13331334

1334-
case l @ Last(child, Literal(false, BooleanType)) =>
1335+
case l @ Last(child, false) =>
13351336
val last = l.aggBufferAttributes(0)
13361337
val valueSet = l.aggBufferAttributes(1)
13371338

0 commit comments

Comments
 (0)