o
    ÜË³i$  ã                   @   s¤   d dl mZmZ d dlmZmZ d dlmZmZ d dl	m
Z
 d dlmZmZmZ d dlmZmZ d dlmZmZ d dlmZmZmZ erHd d	lZG d
d„ deƒZd	S )é    )ÚTYPE_CHECKINGÚUnion)ÚCatalogÚPropertiesUpdateSummary)ÚUNPARTITIONED_PARTITION_SPECÚPartitionSpec)ÚSchema)ÚCommitTableResponseÚCreateTableTransactionÚTable)ÚUNSORTED_SORT_ORDERÚ	SortOrder)ÚTableRequirementÚTableUpdate)Ú
EMPTY_DICTÚ
IdentifierÚ
PropertiesNc                   @   sN  e Zd ZdeeefdeeB dee	df dedB de
deded	efd
d„ZdeeefdeeB dee	df dedB de
deded	efdd„ZdeeB d	efdd„ZdeeB d	efdd„ZdeeB ded	efdd„ZdeeB d	dfdd„ZdeeB d	dfdd„ZdeeB deeB d	efdd„Zdedeedf d eedf d	efd!d"„Zefd#eeB ded	dfd$d%„Zd#eeB d	dfd&d'„Zd#eeB d	ee fd(d)„Z d:d#eeB d	ee fd+d,„Z!d#eeB d	efd-d.„Z"defd#eeB d/e#e dB d ed	e$fd0d1„Z%d#eeB d	ee fd2d3„Z&deeB d	efd4d5„Z'd#eeB d	efd6d7„Z(deeB d	dfd8d9„Z)dS );ÚNoopCatalogNÚ
identifierÚschemaz	pa.SchemaÚlocationÚpartition_specÚ
sort_orderÚ
propertiesÚreturnc                 C   ó   t ‚©N©ÚNotImplementedError©Úselfr   r   r   r   r   r   © r!   úJ/home/ubuntu/.local/lib/python3.10/site-packages/pyiceberg/catalog/noop.pyÚcreate_table*   ó   	zNoopCatalog.create_tablec                 C   r   r   r   r   r!   r!   r"   Úcreate_table_transaction5   r$   z$NoopCatalog.create_table_transactionc                 C   r   r   r   ©r    r   r!   r!   r"   Ú
load_table@   ó   zNoopCatalog.load_tablec                 C   r   r   r   r&   r!   r!   r"   Útable_existsC   r(   zNoopCatalog.table_existsÚmetadata_locationc                 C   r   )ai  Register a new table using existing metadata.

        Args:
            identifier (Union[str, Identifier]): Table identifier for the table
            metadata_location (str): The location to the metadata

        Returns:
            Table: The newly registered table

        Raises:
            TableAlreadyExistsError: If the table already exists
        r   )r    r   r*   r!   r!   r"   Úregister_tableF   s   zNoopCatalog.register_tablec                 C   r   r   r   r&   r!   r!   r"   Ú
drop_tableU   r(   zNoopCatalog.drop_tablec                 C   r   r   r   r&   r!   r!   r"   Úpurge_tableX   r(   zNoopCatalog.purge_tableÚfrom_identifierÚto_identifierc                 C   r   r   r   )r    r.   r/   r!   r!   r"   Úrename_table[   r(   zNoopCatalog.rename_tableÚtableÚrequirements.Úupdatesc                 C   r   r   r   )r    r1   r2   r3   r!   r!   r"   Úcommit_table^   ó   zNoopCatalog.commit_tableÚ	namespacec                 C   r   r   r   )r    r6   r   r!   r!   r"   Úcreate_namespacec   r(   zNoopCatalog.create_namespacec                 C   r   r   r   ©r    r6   r!   r!   r"   Údrop_namespacef   r(   zNoopCatalog.drop_namespacec                 C   r   r   r   r8   r!   r!   r"   Úlist_tablesi   r(   zNoopCatalog.list_tablesr!   c                 C   r   r   r   r8   r!   r!   r"   Úlist_namespacesl   r(   zNoopCatalog.list_namespacesc                 C   r   r   r   r8   r!   r!   r"   Úload_namespace_propertieso   r(   z%NoopCatalog.load_namespace_propertiesÚremovalsc                 C   r   r   r   )r    r6   r=   r3   r!   r!   r"   Úupdate_namespace_propertiesr   r5   z'NoopCatalog.update_namespace_propertiesc                 C   r   r   r   r8   r!   r!   r"   Ú
list_viewsw   r(   zNoopCatalog.list_viewsc                 C   r   r   r   r&   r!   r!   r"   Úview_existsz   r(   zNoopCatalog.view_existsc                 C   r   r   r   r8   r!   r!   r"   Únamespace_exists}   r(   zNoopCatalog.namespace_existsc                 C   r   r   r   r&   r!   r!   r"   Ú	drop_view€   r(   zNoopCatalog.drop_view)r!   )*Ú__name__Ú
__module__Ú__qualname__r   r   r   Ústrr   r   r   r   r   r   r   r#   r
   r%   r'   Úboolr)   r+   r,   r-   r0   Útupler   r   r	   r4   r7   r9   Úlistr:   r;   r<   Úsetr   r>   r?   r@   rA   rB   r!   r!   r!   r"   r   )   s’    ùþ
ýüûúù
øùþ
ýüûúù
øÿ
ÿ
ÿ
þÿÿ
ÿÿ
þr   )Útypingr   r   Úpyiceberg.catalogr   r   Úpyiceberg.partitioningr   r   Úpyiceberg.schemar   Úpyiceberg.tabler	   r
   r   Úpyiceberg.table.sortingr   r   Úpyiceberg.table.updater   r   Úpyiceberg.typedefr   r   r   ÚpyarrowÚpar   r!   r!   r!   r"   Ú<module>   s   