Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ORCA] Remove the IntoClause related logic in the CTAS #978

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jiaqizho
Copy link
Contributor

@jiaqizho jiaqizho commented Mar 4, 2025

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


Under PG14, for CTAS (or SELECT INTO), the `IntoClause` only exists in the parser
stage and no longer exists in the Query structure. It was probably removed at
PG9 ~ PG10?

The logic related to `IntoClause` has been deleted from the current commit.
And rewritten some CTAS interfaces.

In addition, an ORCA fallback caused by an empty targetlist has been fixed.

```
explain select into empty_tl from generate_series(0, 100);
```

will get the fallabck when enable the cassert:

```
INFO:  GPORCA failed to produce a plan, falling back to Postgres-based planner
DETAIL:  CTranslatorDXLToPlStmt.cpp:6154: Failed assertion: nullptr != target_list
```
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