Skip to content

Conversation

@gtarpenning
Copy link
Member

@gtarpenning gtarpenning commented Feb 2, 2026

Description

Before, we generated distributed tables with random shards, this is not great. we should instead use the call id to determine which shards get call data. this allows for better queries when looking up specific call ids.

Testing

adds test

(We need functional tests for distributed tables asap)

@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@gtarpenning gtarpenning marked this pull request as ready for review February 3, 2026 03:45
@gtarpenning gtarpenning requested a review from a team as a code owner February 3, 2026 03:45
@gtarpenning gtarpenning force-pushed the griffin/deterministic-sharded-tables-self-hoste branch from 1d361bd to fe9e893 Compare February 3, 2026 23:01
if SQLPatterns.ALTER_TABLE_STMT.search(sql_query):
return SQLPatterns.ALTER_TABLE_NAME_PATTERN.sub(
lambda m: f"{m.group(1)}{m.group(2)} ON CLUSTER {self.replicated_cluster}{m.group(3)}",
lambda m: (
Copy link
Member Author

Choose a reason for hiding this comment

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

lint

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