class_docstr: Provides inference context from a data warehouse by querying data from its tables.
class_docstr_tok: ["Provides","inference","context","from","a","data","warehouse","by","querying","data","from","its","tables","."]
docstr: Initialize the class.
  
  client: the underlying SQL engine client that will be used for querying table data.
  tables: an exhaustive list of all tables that should be queried.
  max_sample_size: max number of rows to sample from each table
docstr_tok: ["Initialize","the","class",".","client",":","the","underlying","SQL","engine","client","that","will","be","used","for","querying","table","data",".","tables",":","an","exhaustive","list","of","all","tables","that","should","be","queried",".","max_sample_size",":","max","number","of","rows","to","sample","from","each","table"]
code: def __init__(
      self,
      client: SqlClient,
      tables: List[SqlTable],
      max_sample_size: int = 10000,
  ) -> None:
      """Initialize the class.
  
      client: the underlying SQL engine client that will be used for querying table data.
      tables: an exhaustive list of all tables that should be queried.
      max_sample_size: max number of rows to sample from each table
      """
      self._client = client
      self.tables = tables
      self.max_sample_size = max_sample_size
  
imports: from __future__ import annotations
  import contextlib
  from abc import ABC, abstractmethod
  from dataclasses import InitVar, dataclass, field
  from datetime import date, datetime
  from enum import Enum
  from typing import Callable, ContextManager, Dict, Generic, Iterator, List, Optional, TypeVar
  from metricflow.dataflow.sql_column import SqlColumn
  from metricflow.dataflow.sql_table import SqlTable
  from metricflow.inference.context.base import InferenceContext, InferenceContextProvider
  from metricflow.protocols.sql_client import SqlClient
label_desc: Use image node_id 1 to create a new DataWarehouseInferenceContextProvider object from inherited base classes: InferenceContextProvider, ABC with example: obj = DataWarehouseInferenceContextProvider(client, tables, max_sample_size)