Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified type conversion for Index partition err #26

Closed
wants to merge 8 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libs/agentc_core/agentc_core/util/ddl.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ def create_vector_index(

max_partition_env = os.getenv("AGENT_CATALOG_MAX_SOURCE_PARTITION")
try:
max_partition_env = int(max_partition_env)
max_partition_env = int(max_partition_env) if isinstance(max_partition_env, str) else max_partition_env
except Exception as e:
raise ValueError(f"Cannot convert given value of max partition to integer: {e}") from e

index_partition_env = os.getenv("AGENT_CATALOG_INDEX_PARTITION")
try:
index_partition_env = int(index_partition_env)
index_partition_env = int(index_partition_env) if isinstance(index_partition_env, str) else index_partition_env
except Exception as e:
raise ValueError(f"Cannot convert given value of max partition to integer: {e}") from e

Expand Down
Loading