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

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

Build:
Build:
LAST BUILD BRANCH: BABEL-5577
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 21 Feb 2025 10:28AM UTC
Jobs 1
Files 114
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: 73.844% (+0.007%) from 73.837%
13454343842

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 (#3519)

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>

43333 of 58682 relevant lines covered (73.84%)

146258.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 13454343842.1 21 Feb 2025 10:27AM UTC 114
73.84
GitHub Action Run
Source Files on build 13454343842
  • Tree
  • List 114
  • Changed 45
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13454343842
  • 9e7af1b3 on github
  • Prev Build on BABEL_3_X_DEV (#13414704717)
  • Next Build on BABEL_3_X_DEV (#13512741801)
  • 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

© 2025 Coveralls, Inc