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

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

Build:
Build:
LAST BUILD BRANCH: babel_5688_min
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 21 Feb 2025 10:32AM 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

21 Feb 2025 09:56AM UTC coverage: 74.998% (+0.01%) from 74.988%
13454356773

push

github

web-flow
Fix parallel query execution for TSQL statements post community commit <a class=hub.com/babelfish-for-postgresql/babelfish_extensions/commit/7f07ff583ea8d55bb32853de40c3a9b69644c80f">7f07ff583 (#3518)

Community commit 7f07ff583ea8d55bb32853de40c3a9b69644c80f simplified executor code to decide whether to use
parallel query. Based on the new condition executor will never pick parallel operation if numberTuples != 0 is non zero,
which happens when we put a limit on number of tuples that can be returned by executor.

In Babelfish we were always initializing the rowcount as INT_MAX and the setting numberTuples = rowcount, which
means babelfish select query will never be able to use parallelism even though it could.

The correct default value for row count should always have been zero meaning no LIMIT.

Even with this patch, queries will not use parallel query when row count is set to a non zero value by user.

A very simple example with & without this patch
'''
SELECT * INTO t FROM generate_series(1,10000000)
GO
SELECT COUNT(*) FROM t
GO

-- With patch
SELECT COUNT(*) FROM t
Clock Time (ms.): total       526  avg   526.0 (1.9 xacts per sec.)

-- Without patch
SELECT COUNT(*) FROM t
Clock Time (ms.): total      1427  avg   1427.0 (0.7 xacts per sec.)
'''

Signed-off-by: Tanzeel Khan <tzlkhan@amazon.com>

47103 of 62806 relevant lines covered (75.0%)

186496.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 13454356773.1 21 Feb 2025 10:32AM UTC 115
75.0
GitHub Action Run
Source Files on build 13454356773
  • Tree
  • List 115
  • Changed 58
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13454356773
  • 5c288fec on github
  • Prev Build on BABEL_4_X_DEV (#13454341344)
  • Next Build on BABEL_4_X_DEV (#13458086215)
  • 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