Skip to content

Commit

Permalink
Remove default declaration for select rows query
Browse files Browse the repository at this point in the history
  • Loading branch information
mjawadtp committed Jan 3, 2025
1 parent 5b9d7b3 commit 0fca723
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions cumulusci/tasks/bulkdata/select_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
from pydantic import Field, root_validator, validator

from cumulusci.core.enums import StrEnum
from cumulusci.tasks.bulkdata.extract_dataset_utils.hardcoded_default_declarations import (
DEFAULT_DECLARATIONS,
)
from cumulusci.tasks.bulkdata.utils import CaseInsensitiveDict
from cumulusci.utils import get_cci_upgrade_command
from cumulusci.utils.yaml.model_parser import CCIDictModel
Expand Down Expand Up @@ -188,10 +185,6 @@ def standard_generate_query(
filter_clause=user_filter, limit_clause=limit, offset_clause=offset
)
else:
# Get the WHERE clause from DEFAULT_DECLARATIONS if available
declaration = DEFAULT_DECLARATIONS.get(sobject)
if declaration:
query += f" WHERE {declaration.where}"
query += f" LIMIT {limit}" if limit else ""
query += f" OFFSET {offset}" if offset else ""
return query, ["Id"]
Expand Down Expand Up @@ -281,10 +274,6 @@ def similarity_generate_query(
filter_clause=user_filter, limit_clause=limit, offset_clause=offset
)
else:
# Get the WHERE clause from DEFAULT_DECLARATIONS if available
declaration = DEFAULT_DECLARATIONS.get(sobject)
if declaration:
query += f" WHERE {declaration.where}"
query += f" LIMIT {limit}" if limit else ""
query += f" OFFSET {offset}" if offset else ""

Expand Down

0 comments on commit 0fca723

Please sign in to comment.