class_docstr: Expression renderer for the BigQuery engine.
class_docstr_tok: ["Expression","renderer","for","the","BigQuery","engine","."]
docstr: Render time delta for BigQuery, which requires ISO prefixing for the WEEK granularity value.
docstr_tok: ["Render","time","delta","for","BigQuery",",","which","requires","ISO","prefixing","for","the","WEEK","granularity","value","."]
code: def visit_time_delta_expr(
      self, node: SqlSubtractTimeIntervalExpression
  ) -> SqlExpressionRenderResult:
      """Render time delta for BigQuery, which requires ISO prefixing for the WEEK granularity value."""
      column = node.arg.accept(self)
  
      return SqlExpressionRenderResult(
          sql=f"DATE_SUB(CAST({column.sql} AS {self.timestamp_data_type}), INTERVAL {node.count} {node.granularity.value})",
          bind_parameters=column.bind_parameters,
      )
  
imports: from __future__ import annotations
  from fractions import Fraction
  from typing import Collection
  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.errors.errors import UnsupportedEngineFeatureError
  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 SqlCastToTimestampExpression, SqlDateTruncExpression, SqlExtractExpression, SqlGenerateUuidExpression, SqlPercentileExpression, SqlPercentileFunctionType, SqlSubtractTimeIntervalExpression
  from metricflow.sql.sql_plan import SqlSelectColumn
label_desc: Use image node_id 10 for calling the BigQuerySqlExpressionRenderer obj's underlying member method code with example usage: obj.visit_time_delta_expr(node) and returns: SqlExpressionRenderResult