-
Notifications
You must be signed in to change notification settings - Fork 128
feat: add Vertica adapter support #963
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
Changes from all commits
8b84461
7146da5
27e924d
667054b
2130a7a
d7a9c0f
8d1975d
fe2585e
2154163
19e41b5
c585dae
d198a9e
570dcd0
bd69507
c886e4c
bcc9d80
9a2bf01
2a996ef
795fe85
b671822
a26598c
4326960
731ca2f
cf6aed7
899f146
139799c
71b930e
326e20c
7d77e11
e0900da
4edd6f3
f5c11ef
02ae168
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ dbt_internal_packages/ | |
| logs/ | ||
| scripts/ | ||
|
|
||
| .github/fixtures/.user.yml | ||
| .idea | ||
| .DS_Store | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| {#- Override the dbt-vertica seed helper so that each seed file uses a | ||
| unique reject-table name. The upstream macro hardcodes | ||
| ``seed_rejects`` for every seed, which causes "Object already exists" | ||
| errors when ``dbt seed`` processes more than one file. -#} | ||
| {% macro copy_local_load_csv_rows(model, agate_table) %} | ||
| {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %} | ||
|
|
||
| {#- Build a per-seed reject table name so concurrent seeds don't clash. -#} | ||
| {% set reject_table = model["alias"] ~ "_rejects" %} | ||
|
|
||
| {% set sql %} | ||
| copy {{ this.render() }} | ||
| ({{ cols_sql }}) | ||
| from local '{{ agate_table.original_abspath }}' | ||
| delimiter ',' | ||
| enclosed by '"' | ||
| skip 1 | ||
| abort on error | ||
| rejected data as table {{ this.without_identifier() }}.{{ reject_table }}; | ||
| {% endset %} | ||
|
|
||
| {{ return(sql) }} | ||
| {% endmacro %} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| services: | ||
| vertica: | ||
| environment: | ||
| VERTICA_USER: dbadmin | ||
| VERTICA_PASS: vertica | ||
| VERTICA_HOST: localhost | ||
| VERTICA_PORT: 5433 | ||
| VERTICA_DATABASE: elementary_tests | ||
| VERTICA_SCHEMA: ${SCHEMA_NAME} | ||
| APP_DB_USER: dbadmin | ||
| APP_DB_PASSWORD: vertica | ||
| TZ: "America/Los_Angeles" | ||
| VERTICA_DB_NAME: elementary_tests | ||
| VMART_ETL_SCRIPT: "" | ||
| container_name: vertica | ||
| image: ghcr.io/ratiopbc/vertica-ce | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check if the image is accessible and get basic info
# Note: This verifies the image exists and is pullable
# Check GitHub Container Registry for the image
curl -s "https://ghcr.io/v2/ratiopbc/vertica-ce/tags/list" | head -c 500
# Alternative: check if there's an official Vertica CE image
echo "---"
echo "Searching for official Vertica images..."
curl -s "https://hub.docker.com/v2/search/repositories/?query=vertica&page_size=5" | jq '.results[] | {name: .repo_name, description: .short_description}'Repository: elementary-data/dbt-data-reliability Length of output: 638 🏁 Script executed: # Search for references to the Vertica image in the codebase
rg "vertica-ce" -i --type yaml --type json
# Check git history for this file
git log --oneline --all -- integration_tests/docker-compose-vertica.yml | head -20
# Search for any documentation about image choice
rg "ratiopbc" -iRepository: elementary-data/dbt-data-reliability Length of output: 309 🌐 Web query:
💡 Result:
Sources: Citations:
🏁 Script executed: # Search GitHub for the ratiopbc/vertica-ce repository info
curl -s "https://api.github.com/repos/ratiopbc/vertica-ce" | jq '{name, description, updated_at, watchers_count, forks_count, open_issues_count}' 2>/dev/null || echo "Not found or private"
# Also check if the file has any comments or documentation about why this image was chosen
rg -B 5 -A 5 "vertica-ce" integration_tests/docker-compose-vertica.ymlRepository: elementary-data/dbt-data-reliability Length of output: 500 Replace or document the container image source. The image
🤖 Prompt for AI Agents |
||
| ports: | ||
| - "5433:5433" | ||
| - "5444:5444" | ||
| deploy: | ||
| mode: global | ||
| ulimits: | ||
| nofile: | ||
| soft: 65536 | ||
| hard: 65536 | ||
| volumes: | ||
| - type: volume | ||
| source: vertica-data | ||
| target: /data | ||
| healthcheck: | ||
| test: | ||
| [ | ||
| "CMD-SHELL", | ||
| "/opt/vertica/bin/vsql -U dbadmin -w vertica -c 'SELECT 1;'", | ||
| ] | ||
| interval: 5s | ||
| timeout: 5s | ||
| retries: 10 | ||
| volumes: | ||
| vertica-data: | ||
Uh oh!
There was an error while loading. Please reload this page.