Skip to content

Conversation

weinan003
Copy link
Contributor

For the ratio of NDV, the function abs accepts an int value as parameter, the double value -0.x cast to int(0), which lead to unefficient plan picked.

Fix abs -> fabs

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


For the ratio of NDV, the function `abs` accepts an int value as
parameter, the double value `-0.x` cast to `int(0)`, which lead
to unefficient plan picked.

Fix `abs` -> `fabs`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants