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

babelfish-for-postgresql / babelfish_extensions / 18138152024
76%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: 5577-5x
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 30 Sep 2025 05:58PM UTC
Jobs 1
Files 120
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

30 Sep 2025 05:23PM UTC coverage: 75.672% (+0.02%) from 75.657%
18138152024

push

github

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

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 broken 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>

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

491 existing lines in 5 files now uncovered.

49727 of 65714 relevant lines covered (75.67%)

322743.76 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
17
93.15
-1.49% contrib/babelfishpg_tds/src/backend/tds/tdstimestamp.c
49
90.55
0.0% contrib/babelfishpg_tsql/src/pl_handler.c
68
93.44
0.08% contrib/babelfishpg_common/src/datetime.c
176
66.81
0.0% contrib/babelfishpg_common/src/sqlvariant.c
181
83.99
0.02% contrib/babelfishpg_tsql/runtime/functions.c
Jobs
ID Job ID Ran Files Coverage
1 18138152024.1 30 Sep 2025 05:58PM UTC 120
75.67
GitHub Action Run
Source Files on build 18138152024
  • Tree
  • List 120
  • Changed 8
  • Source Changed 8
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18138152024
  • bd041b2a on github
  • Prev Build on BABEL_5_3_STABLE (#17220689456)
  • Next Build on BABEL_5_3_STABLE (#18318441259)
  • 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