Skip to content

Databricks Widget breaks when provided list exceeds 1024 elements #4

@niall-turbitt

Description

@niall-turbitt

In https://github.com/epec254/rag_code/blob/main/M1_Sample_Code/3_pdf_rag/3_load_pdf_to_vector_index.py :

uc_catalogs = [row.catalog for row in spark.sql("SHOW CATALOGS").collect()]
default_uc_catalogs = uc_catalogs[:100]
dbutils.widgets.dropdown(
    "uc_catalog_name",
    defaultValue="",
    choices=default_uc_catalogs + [""],
    label="#2 Select UC Catalog",
)

The widget breaks when there are than 1024 items. In cases where there are > 1024 schemas/catalogs this widget breaks. Should use text field instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions