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!   S/home/ubuntu/veenaModal/venv/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   