class_docstr: Expression renderer for the Trino engine.
class_docstr_tok: ["Expression","renderer","for","the","Trino","engine","."]
docstr: Render DATE PART for an EXTRACT expression.
  
  Override DAY_OF_WEEK in Trino to ISO date part to ensure all engines return consistent results.
docstr_tok: ["Render","DATE","PART","for","an","EXTRACT","expression",".","Override","DAY_OF_WEEK","in","Trino","to","ISO","date","part","to","ensure","all","engines","return","consistent","results","."]
code: def render_date_part(self, date_part: DatePart) -> str:
      """Render DATE PART for an EXTRACT expression.
  
      Override DAY_OF_WEEK in Trino to ISO date part to ensure all engines return consistent results.
      """
      if date_part is DatePart.DOW:
          return "DAY_OF_WEEK"
  
      return date_part.value
  
imports: from __future__ import annotations
  from typing import Collection
  from dateutil.parser import parse
  from dbt_semantic_interfaces.enum_extension import assert_values_exhausted
  from dbt_semantic_interfaces.type_enums.date_part import DatePart
  from dbt_semantic_interfaces.type_enums.time_granularity import TimeGranularity
  from typing_extensions import override
  from metricflow.sql.render.expr_renderer import DefaultSqlExpressionRenderer, SqlExpressionRenderer, SqlExpressionRenderResult
  from metricflow.sql.render.sql_plan_renderer import DefaultSqlQueryPlanRenderer
  from metricflow.sql.sql_bind_parameters import SqlBindParameters
  from metricflow.sql.sql_exprs import SqlBetweenExpression, SqlGenerateUuidExpression, SqlPercentileExpression, SqlPercentileFunctionType, SqlSubtractTimeIntervalExpression
label_desc: Use image node_id 6 for calling the TrinoSqlExpressionRenderer obj's underlying member method code with example usage: obj.render_date_part(date_part) and returns: date_part, str