class_docstr: Expression renderer for the BigQuery engine.
class_docstr_tok: ["Expression","renderer","for","the","BigQuery","engine","."]
docstr: Casts the time value expression to DATETIME.
  
  BigQuery's TIMESTAMP type requires timezone inputs to convert to and from different formats, whereas its
  DATETIME data type does not. This is different from Databricks, which simply returns and renders inUTC by
  default, or Snowflake which does something user-configurable but defaults to TIMESTAMP_NTZ, or PostgreSQL,
  which adheres to the SQL standard of TIMESTAMP_NTZ.
docstr_tok: ["Casts","the","time","value","expression","to","DATETIME",".","BigQuery","'s","TIMESTAMP","type","requires","timezone","inputs","to","convert","to","and","from","different","formats",",","whereas","its","DATETIME","data","type","does","not",".","This","is","different","from","Databricks",",","which","simply","returns","and","renders","inUTC","by","default",",","or","Snowflake","which","does","something","user-configurable","but","defaults","to","TIMESTAMP_NTZ",",","or","PostgreSQL",",","which","adheres","to","the","SQL","standard","of","TIMESTAMP_NTZ","."]
code: def visit_cast_to_timestamp_expr(
      self, node: SqlCastToTimestampExpression
  ) -> SqlExpressionRenderResult:
      """Casts the time value expression to DATETIME.
  
      BigQuery's TIMESTAMP type requires timezone inputs to convert to and from different formats, whereas its
      DATETIME data type does not. This is different from Databricks, which simply returns and renders inUTC by
      default, or Snowflake which does something user-configurable but defaults to TIMESTAMP_NTZ, or PostgreSQL,
      which adheres to the SQL standard of TIMESTAMP_NTZ.
      """
      arg_rendered = self.render_sql_expr(node.arg)
      return SqlExpressionRenderResult(
          sql=f"CAST({arg_rendered.sql} AS {self.timestamp_data_type})",
          bind_parameters=arg_rendered.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 6 for calling the BigQuerySqlExpressionRenderer obj's underlying member method code with example usage: obj.visit_cast_to_timestamp_expr(node) and returns: SqlExpressionRenderResult