materializedview.sql 1.2 KB

12345678910111213141516171819202122232425262728
  1. -- Copyright 2020 Josh Wills. All rights reserved.
  2. -- Copyright Materialize, Inc. and contributors. All rights reserved.
  3. --
  4. -- Licensed under the Apache License, Version 2.0 (the "License");
  5. -- you may not use this file except in compliance with the License.
  6. -- You may obtain a copy of the License in the LICENSE file at the
  7. -- root of this repository, or online at
  8. --
  9. -- http://www.apache.org/licenses/LICENSE-2.0
  10. --
  11. -- Unless required by applicable law or agreed to in writing, software
  12. -- distributed under the License is distributed on an "AS IS" BASIS,
  13. -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. -- See the License for the specific language governing permissions and
  15. -- limitations under the License.
  16. {% materialization materializedview, adapter='materialize' %}
  17. {{ exceptions.warn(
  18. """
  19. The `materializedview` materialization name is deprecated and will be
  20. removed in a future release of dbt-materialize. Please use
  21. `materialized_view` instead, which is built-in from dbt v1.6:
  22. {{ config( materialized = 'materialized_view' )}}
  23. """
  24. )}}
  25. {{ return(materialization_materialized_view_materialize()) }}
  26. {% endmaterialization %}