def _build_array_literal(
    items: list[Any], param_helper: ParamHelper, array_type: str
) -> str:
    """Helper to build ARRAY[...]::type[] literal with parameters."""
    if not items:
        return f"ARRAY[]::{array_type}[]"  # Handle empty array if needed elsewhere
    placeholders = [param_helper.add(item) for item in items]
    return f"ARRAY[{', '.join(placeholders)}]::{array_type}[]"
Helper to build ARRAY[...]::type[] literal with parameters.
py/core/providers/database/filters.py