Ë
    	êñiß  ã                  ód   — 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y)	é    )Úannotations)ÚTYPE_CHECKINGN)ÚDEFAULT_QUERY_OPT_FLAGS)Ú	LazyFrameÚQueryOptFlags)Úoptimizationsc               óš   — |j                  «       }| j                  j                  |j                  «      }t	        j
                  ||¬«      S )až  
    Prepare the given LazyFrame for execution on Polars Cloud.

    Parameters
    ----------
    lf
        The LazyFrame to prepare.
    allow_local_scans
        Whether or not to allow local scans in the plan.
    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.
    )Úallow_local_scans)Ú__copy__Ú_ldfÚwith_optimizationsÚ_pyoptflagsÚplrÚprepare_cloud_plan)Úlfr
   r   Úpylfs       úU/var/www/pod-logistic/pod-ai/venv/lib/python3.12/site-packages/polars/_utils/cloud.pyr   r      s@   € ð: "×*Ñ*Ó,€MØ�7‰7×%Ñ% m×&?Ñ&?Ó@€DÜ×!Ñ! $Ð:KÔLÐLó    )r   r   r
   Úboolr   r   ÚreturnÚbytes)Ú
__future__r   Útypingr   Úpolars._plrÚ_plrr   Úpolars.lazyframe.opt_flagsr   Úpolarsr   r   r   © r   r   ú<module>r      sL   ðÝ "å  å Ý >áß/ð $;ñ	MØðMð ðMð !ð	Mð
 ôMr   