From 24739bd45852dd3015d4be73236d7f50d3bb4a25 Mon Sep 17 00:00:00 2001 From: Zhongshuai Pei <799203320@qq.com> Date: Thu, 7 May 2015 19:35:42 +0800 Subject: [PATCH] Update ConstantFoldingSuite.scala --- .../spark/sql/catalyst/optimizer/ConstantFoldingSuite.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/ConstantFoldingSuite.scala b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/ConstantFoldingSuite.scala index 4e1ce9887f7e2..e74138c221297 100644 --- a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/ConstantFoldingSuite.scala +++ b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/ConstantFoldingSuite.scala @@ -255,7 +255,7 @@ class ConstantFoldingSuite extends PlanTest { .select('a) .where(In(Literal(1), Seq(Literal(1), Literal(2)))) - var optimized = Optimize(originalQuery.analyze) + var optimized = Optimize.execute(originalQuery.analyze) var correctAnswer = testRelation @@ -270,7 +270,7 @@ class ConstantFoldingSuite extends PlanTest { .select('a) .where(In(Literal(1), Seq(Literal(1), 'a.attr))) - optimized = Optimize(originalQuery.analyze) + optimized = Optimize.execute(originalQuery.analyze) correctAnswer = testRelation