Migrate to Private Docker Image & Add Federated Queries Test Suite#21
Migrate to Private Docker Image & Add Federated Queries Test Suite#21mkottakota1 merged 16 commits intomainfrom
Conversation
.github/workflows/ci.yml
Outdated
| docker exec -u dbadmin vertica_docker admintools -t create_db \ | ||
| -s localhost \ | ||
| -d mydb \ | ||
| -p "MySecretPass" |
There was a problem hiding this comment.
Hardcoded Database Password (Security Risk)
There was a problem hiding this comment.
I have removed the hardcoded password and followed the previous DB setup
.github/workflows/ci.yml
Outdated
| - name: Login to Docker Hub | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| username: mkottakota419 |
There was a problem hiding this comment.
why are the personal credentials used in pipelines
There was a problem hiding this comment.
To access the private docker image, I have uploaded in my dockerhub and used it in the pipeline
There was a problem hiding this comment.
I have removed the hardcoded Username and added in the Github secrets
| -s localhost \ | ||
| -d mydb \ | ||
| -p "MySecretPass" | ||
|
|
There was a problem hiding this comment.
No error handling if the create fails
There was a problem hiding this comment.
Added error handling at necessary stages
tests/federated_queries.sql
Outdated
| -- Test 2: Query with column pruning | ||
| -- When only specific columns are selected, ODBCLoader optimizes the external query | ||
| -- to fetch only the required columns. Columns not in the Vertica query are replaced | ||
| -- with NULL values to match the External Table schema |
There was a problem hiding this comment.
can you please check if this comment is correct?
There was a problem hiding this comment.
I have corrected the comment now
I have addressed your comment, kindly review and approve |
sivaalamp
left a comment
There was a problem hiding this comment.
The changes now look good to me, hence approving
Description
This PR adds comprehensive test coverage for the ODBCLoader's federated query capabilities while migrating the CI/CD pipeline from the public Vertica Docker image to a private image for enhanced security, control, and customization.
Changes
Test Suite
New test file:
tests/federated_queries.sql- Contains four test scenarios demonstrating federated query functionality:Expected output file:
tests/expected/federated_queries.out- Contains baseline expected results for test validationUpdated Makefile:
testtarget to run federated queries test suitetest_debugtarget for easier troubleshootingInfrastructure
vertica/vertica-ceimage to private custom Docker imageTesting
Motivation
Related Issues
Closes #[issue-number]
Checklist