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
value
  • Loading branch information
ulysses-you committed Mar 4, 2021
commit 271a2fb7ed093f9725eb89dcecf89cbaf83d34c5
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,13 @@ abstract class SQLViewTestSuite extends QueryTest with SQLTestUtils {
test("SPARK-34613: Fix view does not capture disable hint config") {
withSQLConf(DISABLE_HINTS.key -> "true") {
withView("v1") {
createView("v1", "SELECT /*+ repartition(1) */ 1")
val viewName = createView("v1", "SELECT /*+ repartition(1) */ 1")
assert(
sql("SELECT * FROM v1").queryExecution.analyzed.collect {
case e: Repartition => e
}.isEmpty
)
checkViewOutput(viewName, Seq(Row(1)))
}
}
}
Expand Down