• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

babelfish-for-postgresql / babelfish_extensions / 17946361705
74%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: 5577-5x
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 23 Sep 2025 01:08PM UTC
Jobs 1
Files 115
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Sep 2025 12:35PM UTC coverage: 73.785% (+0.01%) from 73.774%
17946361705

push

github

web-flow
Fix permission checks for views in Planner phase for cross-db cases (#4107)

Commit e2d4ef8de86 - "Fix security checks in selectivity estimation functions."
introduced the permission checks on view in the planner phase. In
Babelfish there is permission specific logic which is implemented in
executor_hook to support the query on cross-db views. While implementing
cross-db view query support, We assumed that permission checks always
happens at executor. After mentioned community changes that assumption
got brocken and cross-db view queries throwing errors of insufficient
privileges.

This commit fixes above issue by adding same logic for supporting
cross-db view query to pre-planning phase using pltsql_planner_hook. It
is basically walking through whole query tree and inserts checkAsUser
field for all the view RTE, so that permission check on views always
happens on TSQL login to support cross-db usecases.

Issues Resolved: BABEL-6035
Signed-off-by: Harsh Lunagariya <lunharsh@amazon.com>

24 of 24 new or added lines in 1 file covered. (100.0%)

43682 of 59202 relevant lines covered (73.78%)

213376.13 hits per line

Jobs
ID Job ID Ran Files Coverage
1 17946361705.1 23 Sep 2025 01:08PM UTC 115
73.78
GitHub Action Run
Source Files on build 17946361705
  • Tree
  • List 115
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17946361705
  • 308fc4e4 on github
  • Prev Build on BABEL_3_11_STABLE (#17220707880)
  • Next Build on BABEL_3_11_STABLE (#18933905787)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc