1010import pytest
1111
1212try :
13- from pyiceberg .catalog import load_catalog
14- from pyiceberg .schema import Schema
15-
1613 from src .amp .loaders .implementations .iceberg_loader import IcebergLoader
1714 from tests .integration .loaders .conftest import LoaderTestConfig
1815 from tests .integration .loaders .test_base_loader import BaseLoaderTests
@@ -102,7 +99,6 @@ def test_catalog_initialization(self, iceberg_basic_config):
10299
103100 def test_partitioning (self , iceberg_basic_config , small_test_data ):
104101 """Test Iceberg partitioning (partition spec)"""
105- import pyarrow as pa
106102
107103 # Create config with partitioning
108104 config = {** iceberg_basic_config , 'partition_spec' : [('year' , 'identity' ), ('month' , 'identity' )]}
@@ -147,7 +143,7 @@ def test_schema_evolution(self, iceberg_basic_config, small_test_data):
147143 extended_table = pa .Table .from_pydict (extended_data )
148144
149145 # Load with new schema
150- result2 = loader .load_table (extended_table , table_name , mode = LoadMode .APPEND )
146+ loader .load_table (extended_table , table_name , mode = LoadMode .APPEND )
151147
152148 # Schema evolution depends on config
153149 catalog = loader ._catalog
@@ -161,9 +157,10 @@ def test_schema_evolution(self, iceberg_basic_config, small_test_data):
161157
162158 def test_timestamp_conversion (self , iceberg_basic_config ):
163159 """Test timestamp conversion for Iceberg"""
164- import pyarrow as pa
165160 from datetime import datetime
166161
162+ import pyarrow as pa
163+
167164 # Create data with timestamps
168165 data = {
169166 'id' : [1 , 2 , 3 ],
@@ -193,7 +190,6 @@ def test_timestamp_conversion(self, iceberg_basic_config):
193190
194191 def test_multiple_tables (self , iceberg_basic_config , small_test_data ):
195192 """Test managing multiple tables with same loader"""
196- from src .amp .loaders .base import LoadMode
197193
198194 loader = IcebergLoader (iceberg_basic_config )
199195
0 commit comments