§
    è‘jß  ã                  ó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   Úallow_local_scansÚboolr   r   ÚreturnÚbytesc               ó”   — |                      ¦   «         }| 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.
    )r
   )Ú__copy__Ú_ldfÚwith_optimizationsÚ_pyoptflagsÚplrÚprepare_cloud_plan)r	   r
   r   Úpylfs       úX/home/longshao/multi-rider-rag/.venv/lib/python3.11/site-packages/polars/_utils/cloud.pyr   r      sD   € ð: "×*Ò*Ñ,Ô,€MØŒ7×%Ò% mÔ&?Ñ@Ô@€DÝÔ! $Ð:KÐLÑLÔLÐLó    )r	   r   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Ø/Ð/Ð/Ð/Ð/Ð/Ð/Ð/ð $;ð	Mð Mð Mð Mð Mð Mð Mð Mr   