Skip to content
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

feat: Support for views #132

Merged
merged 30 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
a912559
feat: Support for views
Weijun-H Sep 25, 2024
9aef189
chore: Add comments for tests
Weijun-H Sep 25, 2024
0a57e30
chore
Weijun-H Sep 25, 2024
e76495d
chore: Update tests
Weijun-H Sep 25, 2024
fc0d1ef
fix: Check if the table exists in the DuckDB
Weijun-H Sep 26, 2024
64aac71
fix: Not fully pushed to DuckDB
Weijun-H Sep 27, 2024
13eb303
chore
Weijun-H Sep 27, 2024
fa61a4c
chore:test
Weijun-H Sep 27, 2024
bcefae5
chore:test
Weijun-H Sep 27, 2024
eef518f
chore: Used sqlparser to parse create view statement
Weijun-H Oct 1, 2024
ab1b4af
chore: Updated tests
Weijun-H Oct 1, 2024
32a8071
chore: Add comments
Weijun-H Oct 11, 2024
918ea6c
chore: Add comments
Weijun-H Oct 11, 2024
5fbf120
chore: Fix rebase
Weijun-H Oct 14, 2024
a2f0e67
chore
Weijun-H Oct 14, 2024
d323855
refactor: check pgcatalog
Weijun-H Oct 16, 2024
a5d8d9f
chore: Fix typo
Weijun-H Oct 16, 2024
f9bf692
chore: Clean up
Weijun-H Oct 16, 2024
834cfbd
chore: Warning the table which is not a foreign table from DuckDB
Weijun-H Oct 17, 2024
8248a74
chore: Rebase
Weijun-H Oct 18, 2024
01cdc6c
refactor: Using parse_analyze_fixedparams
Weijun-H Oct 22, 2024
4b69e43
refactor: Update parse_analyze_fixedparams usage in view_query function
Weijun-H Oct 22, 2024
b6f90c3
refactor: Update parse_analyze_fixedparams usage in view_query function
Weijun-H Oct 22, 2024
7e0df99
refactor: Update parse_analyze_fixedparams usage in view_query functi…
Weijun-H Oct 22, 2024
5935635
fix: CI
Weijun-H Oct 22, 2024
795dc23
chore
Weijun-H Oct 25, 2024
07c46b3
chore
Weijun-H Oct 27, 2024
797cd8b
chore: Add nested test
Weijun-H Oct 27, 2024
f275502
chore: Update pg_analytics
Weijun-H Oct 27, 2024
d51c7fa
chore
Weijun-H Oct 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .codespellignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
crate
socio-economic
larg
rlarg
23 changes: 15 additions & 8 deletions .github/workflows/test-pg_analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,17 @@ jobs:
working-directory: /home/runner/.pgrx/data-${{ matrix.pg_version }}/
run: sed -i "s/^#shared_preload_libraries = .*/shared_preload_libraries = 'pg_analytics'/" postgresql.conf

- name: Compile & install pg_analytics extension
if: steps.check_skip.outputs.skip_remaining_steps != 'true'
run: cargo pgrx install --pg-config="/usr/lib/postgresql/${{ matrix.pg_version }}/bin/pg_config"

- name: Start Postgres via cargo-pgrx
if: steps.check_skip.outputs.skip_remaining_steps != 'true'
run: |
RUST_BACKTRACE=1 cargo pgrx start pg${{ matrix.pg_version }}
# Necessary for the ephemeral Postgres test to have proper permissions
sudo chown -R $(whoami) /var/run/postgresql/

# The SHA hash here must exactly match the Image::Tag that is referenced in the
# testcontainers modules Rust crate for localstack.
- name: Pull localstack image
Expand All @@ -140,16 +151,12 @@ jobs:
echo -e "\n# Enable code coverage on Linux only, for CI builds\n[target.'cfg(target_os=\"linux\")']\nrustflags = [\"-Cinstrument-coverage\"]" >> .cargo/config.toml
mkdir -p target/coverage target/coverage-report

echo ""
echo "Building pg_analytics..."
cargo pgrx install --pg-config="/usr/lib/postgresql/${{ matrix.pg_version }}/bin/pg_config" --release

echo ""
echo "Starting Postgres..."
cargo pgrx start pg${{ matrix.pg_version }}

echo ""
echo "Running Rust tests..."
export DATABASE_URL=postgresql://localhost:288${{ matrix.pg_version }}/postgres
export RUST_BACKTRACE=1
cargo test --package tests --features "pg${{ matrix.pg_version }}" --no-default-features

- name: Print the Postgres Logs
if: steps.check_skip.outputs.skip_remaining_steps != 'true' && always()
run: cat ~/.pgrx/${{ matrix.pg_version}}.log
Loading