Skip to content

Conversation

GuillaumeDSM
Copy link
Member

remaining:

  • make async

@GuillaumeDSM GuillaumeDSM self-assigned this Sep 30, 2025
@GuillaumeDSM GuillaumeDSM changed the title WIP [Community] init Iceberg support [Community] init Iceberg support Oct 1, 2025
@GuillaumeDSM GuillaumeDSM marked this pull request as ready for review October 1, 2025 08:59
@GuillaumeDSM GuillaumeDSM requested a review from Herklos as a code owner October 1, 2025 08:59
Copy link
Member

@Herklos Herklos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work !!

assert 0 < min_time < max_time < time.time()


async def test_fetch_candles_history(iceberg_client):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍



class TableNames(enum.Enum):
OHLCV_HISTORY = "ohlcv_history6"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use an env var here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rigtht, done


async def open(self):
try:
self._executor = concurrent.futures.ThreadPoolExecutor(max_workers=_MAX_EXECUTOR_WORKERS)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this to use a local executor that is limited and closed when we don't need it anymore

Copy link
Member

@Herklos Herklos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

ICEBERG_CATALOG_NAMESPACE = os.getenv("ICEBERG_CATALOG_NAMESPACE")
ICEBERG_CATALOG_NAME = os.getenv("ICEBERG_CATALOG_NAME")
ICEBERG_CATALOG_WAREHOUSE = os.getenv("ICEBERG_CATALOG_WAREHOUSE")
ICEBERG_OHLCV_HISTORY_TABLE = os.getenv("ICEBERG_OHLCV_HISTORY_TABLE")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@GuillaumeDSM GuillaumeDSM enabled auto-merge (rebase) October 1, 2025 09:22
@GuillaumeDSM GuillaumeDSM merged commit e5e3697 into dev Oct 1, 2025
11 checks passed
@GuillaumeDSM GuillaumeDSM deleted the iceberg branch October 1, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants