§
    Ò¬¸jN  ã                  óX   — d dl mZ d dlmZ d dlmZ d dlmZ erd dl	m
Z
mZ edœdd„ZdS )é    )Úannotations)ÚTYPE_CHECKINGN)ÚDEFAULT_QUERY_OPT_FLAGS)Ú	LazyFrameÚQueryOptFlags)ÚoptimizationsÚlfr   r   r   ÚreturnÚbytesc               ó�   — |                      ¦   «         }| j                             |j        ¦  «        }t	          j        |¦  «        S )aO  
    Prepare the given LazyFrame for execution on Polars Cloud.

    Parameters
    ----------
    lf
        The LazyFrame to prepare.
    optimizations
        Optimizations to enable or disable in the query optimizer.

    Raises
    ------
    InvalidOperationError
        If the given LazyFrame is not eligible to be run on Polars Cloud.
        The following conditions will disqualify a LazyFrame from being eligible:

        - Contains a user-defined function
        - Scans or sinks to a local filesystem
    ComputeError
        If the given LazyFrame cannot be serialized.
    )Ú__copy__Ú_ldfÚwith_optimizationsÚ_pyoptflagsÚplrÚprepare_cloud_plan)r	   r   Úpylfs      úc/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/polars/_utils/cloud.pyr   r      s>   € ð4 "×*Ò*Ñ,Ô,€MØŒ7×%Ò% mÔ&?Ñ@Ô@€DÝÔ! $Ñ'Ô'Ð'ó    )r	   r   r   r   r
   r   )Ú
__future__r   Útypingr   Úpolars._plrÚ_plrr   Úpolars.lazyframe.opt_flagsr   Úpolarsr   r   r   © r   r   ú<module>r      sš   ðØ "Ð "Ð "Ð "Ð "Ð "à  Ð  Ð  Ð  Ð  Ð  à Ð Ð Ð Ð Ð Ø >Ð >Ð >Ð >Ð >Ð >àð 0Ø/Ð/Ð/Ð/Ð/Ð/Ð/Ð/ð $;ð(ð (ð (ð (ð (ð (ð (ð (r   