Ë
    u™ãjÌ  ã                   óH  — d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	m
Z
  ed«      	 ddddddddd	œd
ededz  deeef   dz  dee   dz  dedz  dededz  dedz  deeef   dz  defd„«       Z	 ddddddœded
ededz  deeef   dz  dedz  dedeeef   dz  ddfd„Zy)é    )ÚAny)Úimport_optional_dependency)Ú
set_module)Ú	DataFrame)Úarrow_table_to_pandasÚsuppress_pyarrow_values_warningÚpandasNT)Úcatalog_propertiesÚcolumnsÚ
row_filterÚcase_sensitiveÚsnapshot_idÚlimitÚscan_propertiesÚtable_identifierÚcatalog_namer
   r   r   r   r   r   r   Úreturnc                ó*  — t        d«      }	t        d«      }
|€i } |	j                  |fi |¤Ž}|j                  | «      }|€|
j                  «       }|€d}nt	        |«      }|€i }|j                  ||||||¬«      }t        |j                  «       «      S )aº  
    Read an Apache Iceberg table into a pandas DataFrame.

    .. versionadded:: 3.0.0

    .. warning::

       read_iceberg is experimental and may change without warning.

    Parameters
    ----------
    table_identifier : str
        Table identifier.
    catalog_name : str, optional
        The name of the catalog.
    catalog_properties : dict of {str: str}, optional
        The properties that are used next to the catalog configuration.
    columns : list of str, optional
        A list of strings representing the column names to return in the output
        dataframe.
    row_filter : str, optional
        A string that describes the desired rows.
    case_sensitive : bool, default True
        If True column matching is case sensitive.
    snapshot_id : int, optional
        Snapshot ID to time travel to. By default the table will be scanned as of the
        current snapshot ID.
    limit : int, optional
        An integer representing the number of rows to return in the scan result.
        By default all matching rows will be fetched.
    scan_properties : dict of {str: obj}, optional
        Additional Table properties as a dictionary of string key value pairs to use
        for this scan.

    Returns
    -------
    DataFrame
        DataFrame based on the Iceberg table.

    See Also
    --------
    read_parquet : Read a Parquet file.

    Examples
    --------
    >>> df = pd.read_iceberg(
    ...     table_identifier="my_table",
    ...     catalog_name="my_catalog",
    ...     catalog_properties={"s3.secret-access-key": "my-secret"},
    ...     row_filter="trip_distance >= 10.0",
    ...     columns=["VendorID", "tpep_pickup_datetime"],
    ... )  # doctest: +SKIP
    úpyiceberg.catalogzpyiceberg.expressions)Ú*)r   Úselected_fieldsr   r   Úoptionsr   )r   Úload_catalogÚ
load_tableÚ
AlwaysTrueÚtupleÚscanr   Úto_arrow)r   r   r
   r   r   r   r   r   r   Úpyiceberg_catalogÚpyiceberg_expressionsÚcatalogÚtabler   Úresults                  ú\/var/www/html/python-recuperauto-other/env/lib/python3.12/site-packages/pandas/io/iceberg.pyÚread_icebergr%      s¾   € ôD 3Ð3FÓGÐÜ6Ð7NÓOÐØÐ!ØÐØ,Ð×,Ñ,¨\ÑPÐ=OÑP€GØ×ÑÐ/Ó0€EØÐØ*×5Ñ5Ó7ˆ
Ø€Ø ‰ä ›.ˆØÐØˆØ�Z‰ZØØ'Ø%ØØØð ó €Fô ! §¡Ó!2Ó3Ð3ó    F)r
   ÚlocationÚappendÚsnapshot_propertiesÚdfr'   r(   r)   c                óh  — t        d«      }t        d«      }|€i } |j                  |fi |¤Ž}	t        «       5  |j                  j	                  | «      }
ddd«       |	j                  |
j                  |¬«      }|€i }|r|j                  |
|¬«       y|j                  |
|¬«       y# 1 sw Y   ŒUxY w)a  
    Write a DataFrame to an Apache Iceberg table.

    .. versionadded:: 3.0.0

    Parameters
    ----------
    table_identifier : str
        Table identifier.
    catalog_name : str, optional
        The name of the catalog.
    catalog_properties : dict of {str: str}, optional
        The properties that are used next to the catalog configuration.
    location : str, optional
        Location for the table.
    append : bool, default False
        If ``True``, append data to the table, instead of replacing the content.
    snapshot_properties : dict of {str: str}, optional
        Custom properties to be added to the snapshot summary

    See Also
    --------
    read_iceberg : Read an Apache Iceberg table.
    DataFrame.to_parquet : Write a DataFrame in Parquet format.
    Úpyarrowr   N)Ú
identifierÚschemar'   )r)   )	r   r   r   ÚTableÚfrom_pandasÚcreate_table_if_not_existsr.   r(   Ú	overwrite)r*   r   r   r
   r'   r(   r)   Úpar   r!   Úarrow_tabler"   s               r$   Ú
to_icebergr5   k   sÆ   € ôF 
$ IÓ	.€BÜ2Ð3FÓGÐØÐ!ØÐØ,Ð×,Ñ,¨\ÑPÐ=OÑP€GÜ	(Ó	*ñ /Ø—h‘h×*Ñ*¨2Ó.ˆ÷/à×.Ñ.Ø#Ø×!Ñ!Øð /ó €Eð Ð"Ø ÐÙØ�‰�[Ð6IˆÕJà�‰˜Ð9LˆÕM÷/ð /ús   ¸B(Â(B1)N)Útypingr   Úpandas.compat._optionalr   Úpandas.util._decoratorsr   r	   r   Úpandas.io._utilr   r   ÚstrÚdictÚlistÚboolÚintr%   r5   © r&   r$   ú<module>r@      sŠ  ðõõ ?Ý .å ÷ñ ˆHÓð  $ðW4ð 15Ø $Ø!ØØ"ØØ-1òW4ØðW4à˜‘*ðW4ð ˜S #˜X™¨Ñ-ð	W4ð
 �#‰Y˜ÑðW4ð �d‘
ðW4ð ðW4ð �t‘ðW4ð �‰:ðW4ð ˜#˜s˜(‘^ dÑ*ðW4ð òW4ó ðW4ðz  $ð6Nð
 15ØØØ15ò6NØð6Nàð6Nð ˜‘*ð6Nð
 ˜S #˜X™¨Ñ-ð6Nð �D‰jð6Nð ð6Nð ˜c 3˜h™¨$Ñ.ð6Nð 
ô6Nr&   