class_docstr: Extends the AdapterBackedSqlClient with the DDL methods necessary for test configuration and execution.
class_docstr_tok: ["Extends","the","AdapterBackedSqlClient","with","the","DDL","methods","necessary","for","test","configuration","and","execution","."]
docstr: Helper method to get the engine-specific type value.
  
  The dtype dict here is non-exhaustive but should be adequate for our needs.
docstr_tok: ["Helper","method","to","get","the","engine-specific","type","value",".","The","dtype","dict","here","is","non-exhaustive","but","should","be","adequate","for","our","needs","."]
code: def _get_type_from_pandas_dtype(self, dtype: str) -> str:
      """Helper method to get the engine-specific type value.
  
      The dtype dict here is non-exhaustive but should be adequate for our needs.
      """
      # TODO: add type handling for string/bool/bigint types for all engines
      if dtype == "string" or dtype == "object":
          if (
              self.sql_engine_type is SqlEngine.DATABRICKS
              or self.sql_engine_type is SqlEngine.BIGQUERY
          ):
              return "string"
          if self.sql_engine_type is SqlEngine.TRINO:
              return "varchar"
          return "text"
      elif dtype == "boolean" or dtype == "bool":
          return "boolean"
      elif dtype == "int64":
          return "bigint"
      elif dtype == "float64":
          return (
              self._sql_query_plan_renderer.expr_renderer.double_data_type
          )
      elif dtype == "datetime64[ns]":
          return (
              self._sql_query_plan_renderer.expr_renderer.timestamp_data_type
          )
      else:
          raise ValueError(
              f"Encountered unexpected Pandas dtype ({dtype})!"
          )
  
file_path: metricflow/metricflow/test/fixtures/sql_clients/adapter_backed_ddl_client.py
imports: from __future__ import annotations
  import logging
  import time
  from typing import Optional
  import pandas
  from metricflow.cli.dbt_connectors.adapter_backed_client import AdapterBackedSqlClient
  from metricflow.dataflow.sql_table import SqlTable
  from metricflow.protocols.sql_client import SqlEngine
label_desc: Use image node_id 2 for calling the AdapterBackedDDLSqlClient obj's underlying member method code with example usage: obj._get_type_from_pandas_dtype(dtype) and returns: str, str, str, str, str, self, self