Skip to content

Commit

Permalink
add common method
Browse files Browse the repository at this point in the history
  • Loading branch information
seawinde committed Oct 21, 2024
1 parent 477e0cf commit d720563
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1484,6 +1484,13 @@ class Suite implements GroovyInterceptable {
}
}

def mv_rewrite_success = { query_sql, mv_name ->
explain {
sql("${query_sql}")
contains("${mv_name}(${mv_name})")
}
}

def check_mv_rewrite_fail = { db, mv_sql, query_sql, mv_name ->

sql """DROP MATERIALIZED VIEW IF EXISTS ${mv_name}"""
Expand Down

0 comments on commit d720563

Please sign in to comment.