class_docstr: Lazy loading, memoizing, instantiation of SparkSessions.
  
  Useful when you want to defer SparkSession instantiation and provide access to the same
  instance throughout the application.
class_docstr_tok: ["Lazy","loading",",","memoizing",",","instantiation","of","SparkSessions",".","Useful","when","you","want","to","defer","SparkSession","instantiation","and","provide","access","to","the","same","instance","throughout","the","application","."]
docstr: Get an instance of the SparkSession with Iceberg settings configured.
  
  Args:
      warehouse_s3_uri (str): The S3 URI of the warehouse.
      catalog (str): The catalog.
  
  Returns:
      SparkSession: A SparkSession ready to support reading and writing data from an Iceberg
          Table.
docstr_tok: ["Get","an","instance","of","the","SparkSession","with","Iceberg","settings","configured",".","Args",":","warehouse_s3_uri","(","str",")",":","The","S3","URI","of","the","warehouse",".","catalog","(","str",")",":","The","catalog",".","Returns",":","SparkSession",":","A","SparkSession","ready","to","support","reading","and","writing","data","from","an","Iceberg","Table","."]
code: def get_spark_session_with_iceberg_config(
      self, warehouse_s3_uri, catalog
  ) -> SparkSession:
      """Get an instance of the SparkSession with Iceberg settings configured.
  
      Args:
          warehouse_s3_uri (str): The S3 URI of the warehouse.
          catalog (str): The catalog.
  
      Returns:
          SparkSession: A SparkSession ready to support reading and writing data from an Iceberg
              Table.
      """
      conf = self.spark_session.conf
  
      for cfg in self._get_iceberg_configs(warehouse_s3_uri, catalog):
          conf.set(cfg[0], cfg[1])
  
      return self.spark_session
  
file_path: sagemaker-python-sdk/src/sagemaker/feature_store/feature_processor/_spark_factory.py
imports: from __future__ import absolute_import
  from functools import lru_cache
  from typing import List, Tuple, Dict
  import feature_store_pyspark
  import feature_store_pyspark.FeatureStoreManager
  from pyspark.conf import SparkConf
  from pyspark.context import SparkContext
  from pyspark.sql import SparkSession
  from sagemaker.feature_store.feature_processor._env import EnvironmentHelper
label_desc: Use image node_id 6 for calling the SparkSessionFactory obj's underlying member method code with example usage: obj.get_spark_session_with_iceberg_config(warehouse_s3_uri, catalog) and returns: self