Wondering if anyone ever hit this limit with Eleme...
# community-support
n
Wondering if anyone ever hit this limit with Elementary tests. I am getting this error where we have a failing
on-end-run
hook.
Copy code
Too many tables, views and user-defined functions for query: Max: 1000
This is BQ-DBT on Elementary version 0.16.4
@Noya Offer I am using this config already
Copy code
# elementary limits
  dbt_artifacts_chunk_size: 300
  insert_rows_method: "chunk"
  query_max_size: 100000
  disable_dbt_columns_autoupload: true
👀 1
n
Looked into it and saw that you're a contributor for this 😅 Try adding this, should take a big load off the hooks. This has no effect on the CLI, it's related to Cloud features.
Copy code
vars:
  columns_upload_strategy: none
n
I removed some of the tests to under 1000 and now its working. I am seeing another issue in the prod erroring
Copy code
ERROR 2025-04-03T19:54:30.807743125Z /usr/local/lib/python3.9/site-packages/bs4/__init__.py:332: MarkupResemblesLocatorWarning: "analysis" looks like a filename, not markup. You should probably open this file and pass the filehandle into Beautiful Soup.
ERROR 2025-04-03T19:54:30.807847Z warnings.warn(
ERROR 2025-04-03T19:54:31.160860059Z /usr/local/lib/python3.9/site-packages/bs4/__init__.py:417: MarkupResemblesLocatorWarning: "<https://doi.org/10.1111/tan.13811>" looks like a URL. Beautiful Soup is not an HTTP client. You should probably use an HTTP client like requests to get the document behind the URL, and feed that document to Beautiful Soup.
ERROR 2025-04-03T19:54:31.160967604Z warnings.warn(
ERROR 2025-04-03T19:54:31.935331992Z /usr/local/lib/python3.9/site-packages/bs4/__init__.py:417: MarkupResemblesLocatorWarning: "<http://www.ensembl.org>" looks like a URL. Beautiful Soup is not an HTTP client. You should probably use an HTTP client like requests to get the document behind the URL, and feed that document to Beautiful Soup.
ERROR 2025-04-03T19:54:31.935462075Z warnings.warn(
ERROR 2025-04-03T19:54:31.935623400Z /usr/local/lib/python3.9/site-packages/bs4/__init__.py:417: MarkupResemblesLocatorWarning: "<https://genenames.org/>" looks like a URL. Beautiful Soup is not an HTTP client. You should probably use an HTTP client like requests to get the document behind the URL, and feed that document to Beautiful Soup.
ERROR 2025-04-03T19:54:31.935723964Z warnings.warn(
ERROR 2025-04-03T19:54:31.935979807Z /usr/local/lib/python3.9/site-packages/bs4/__init__.py:417: MarkupResemblesLocatorWarning: "<https://www.ncbi.nlm.nih.gov/refseq/>" looks like a URL. Beautiful Soup is not an HTTP client. You should probably use an HTTP client like requests to get the document behind the URL, and feed that document to Beautiful Soup.
ERROR 2025-04-03T19:54:31.936083991Z warnings.warn(
Is this related to the adding of the variables?
n
This seems related to Beautiful Soup and not Elementary related 🙂 It looks like it expects an HTML and receives a URL for some reason. Are you able to generate a report or is this a blocker?
n
I guess I am back to this error again. Is there a way to chunk the queries and load instead of doing it in 1 single go?
I am using as suggested -
Copy code
# elementary limits
  dbt_artifacts_chunk_size: 300
  insert_rows_method: "chunk"
  query_max_size: 100000
  disable_dbt_columns_autoupload: true
  columns_upload_strategy: none