Skip to content

Conversation

lss602726449
Copy link
Contributor

In external table with CFTYPE_EXEC. We check stderr and ereport error when external_getnext return null.

Fixes #1385

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


{
char *relname = pstrdup(RelationGetRelationName(scan->fs_rd));
int ebuflen = 512;
char *ebuf = palloc0(ebuflen);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to use static char ebuf[512] here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

In external table with CFTYPE_EXEC. We check and ereport
error when external_getnext return null.
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.

CREATE EXTERNAL TABLE with a non-existent EXECUTE command returns 0 rows instead of an error

2 participants