original_docstring: 
      Generate sql that wraps the sql_query with the materialization indicated by model.
      :param dialect: SQL Dialect
      :param sql_query: raw sql query
      :param model: model that indicates the materialization and name of the resulting view or table
          (if applicable).
      :return: raw sql
      
docstring: Generate sql that wraps the sql_query with the materialization indicated by model.
docstring_tokens: Generate sql that wraps the sql_query with the materialization indicated by model .
code: def _materialize(dialect: Dialect, sql_query: str, model: SqlModel) -> str:
      """
      Generate sql that wraps the sql_query with the materialization indicated by model.
      :param dialect: SQL Dialect
      :param sql_query: raw sql query
      :param model: model that indicates the materialization and name of the resulting view or table
          (if applicable).
      :return: raw sql
      """
  
      materialization = model.materialization
      quoted_name = model_to_quoted_name(dialect, model)
      if materialization == Materialization.CTE:
          return sql_query
      if materialization == Materialization.QUERY:
          return sql_query
      if materialization == Materialization.VIEW:
          return f'create view {quoted_name} as {sql_query}'
      if materialization == Materialization.TABLE:
          return f'create table {quoted_name} as {sql_query}'
      if materialization == Materialization.TEMP_TABLE:
          return f'create temporary table {quoted_name} on commit drop as {sql_query}'
      if materialization == Materialization.VIRTUAL_NODE:
          return ''
      raise Exception(f'Unsupported Materialization value: {materialization}')
code_tokens: def _materialize ( dialect : Dialect , sql_query : str , model : SqlModel ) -> str : materialization = model . materialization quoted_name = model_to_quoted_name ( dialect , model ) if materialization == Materialization . CTE : return sql_query if materialization == Materialization . QUERY : return sql_query if materialization == Materialization . VIEW : return f'create view {quoted_name} as {sql_query}' if materialization == Materialization . TABLE : return f'create table {quoted_name} as {sql_query}' if materialization == Materialization . TEMP_TABLE : return f'create temporary table {quoted_name} on commit drop as {sql_query}' if materialization == Materialization . VIRTUAL_NODE : return '' raise Exception ( f'Unsupported Materialization value: {materialization}' )
short_docstring: Generate sql that wraps the sql_query with the materialization indicated by model.
short_docstring_tokens: Generate sql that wraps the sql_query with the materialization indicated by model .
comment: """
      Generate sql that wraps the sql_query with the materialization indicated by model.
      :param dialect: SQL Dialect
      :param sql_query: raw sql query
      :param model: model that indicates the materialization and name of the resulting view or table
          (if applicable).
      :return: raw sql
      """