File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sql/core/src/test/scala/org/apache/spark/sql/execution Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -146,10 +146,10 @@ abstract class SQLViewSuite extends QueryTest with SQLTestUtils {
146146 s " ALTER TABLE $viewName SET LOCATION '/path/to/your/lovely/heart' " ,
147147 s " ' $viewName' is a view not a table " )
148148 assertAnalysisError(
149- s " ALTER TABLE $viewName DROP PARTITION (a='4', b='8') " ,
149+ s " ALTER TABLE $viewName ADD IF NOT EXISTS PARTITION (a='4', b='8') " ,
150150 s " $viewName is a temp view not table " )
151151 assertAnalysisError(
152- s " ALTER TABLE $viewName SET LOCATION '/path/to/your/lovely/heart' " ,
152+ s " ALTER TABLE $viewName DROP PARTITION (a='4', b='8') " ,
153153 s " $viewName is a temp view not table " )
154154
155155 // For the following v2 ALERT TABLE statements, unsupported operations are checked first
You can’t perform that action at this time.
0 commit comments