class_docstr: Renders the SQL query plan assuming ANSI SQL.
class_docstr_tok: ["Renders","the","SQL","query","plan","assuming","ANSI","SQL","."]
docstr: Render DATE PART for an EXTRACT expression.
  
  For DatePart.DOW (day of week) we use the ISO date part to ensure all engines return consistent results.
docstr_tok: ["Render","DATE","PART","for","an","EXTRACT","expression",".","For","DatePart.DOW","(","day","of","week",")","we","use","the","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.
  
      For DatePart.DOW (day of week) we use the ISO date part to ensure all engines return consistent results.
      """
      if date_part is DatePart.DOW:
          return "isodow"
  
      return date_part.value
  
imports: from __future__ import annotations
  import logging
  import textwrap
  from abc import ABC, abstractmethod
  from collections import namedtuple
  from dataclasses import dataclass
  from typing import Collection, List
  import jinja2
  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.sql_bind_parameters import SqlBindParameters
  from metricflow.sql.sql_exprs import SqlAggregateFunctionExpression, SqlBetweenExpression, SqlCastToTimestampExpression, SqlColumnAliasReferenceExpression, SqlColumnReferenceExpression, SqlComparisonExpression, SqlDateTruncExpression, SqlExpressionNode, SqlExpressionNodeVisitor, SqlExtractExpression, SqlFunction, SqlGenerateUuidExpression, SqlIsNullExpression, SqlLogicalExpression, SqlNullExpression, SqlPercentileExpression, SqlPercentileFunctionType, SqlRatioComputationExpression, SqlStringExpression, SqlStringLiteralExpression, SqlSubtractTimeIntervalExpression, SqlWindowFunctionExpression
  from metricflow.sql.sql_plan import SqlSelectColumn
label_desc: Use image node_id 18 for calling the DefaultSqlExpressionRenderer obj's underlying member method code with example usage: obj.render_date_part(date_part) and returns: date_part, str