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

[Bug] PXF 6.10 doesn't compile with Cloudberry #983

Open
1 of 2 tasks
ostinru opened this issue Mar 7, 2025 · 3 comments
Open
1 of 2 tasks

[Bug] PXF 6.10 doesn't compile with Cloudberry #983

ostinru opened this issue Mar 7, 2025 · 3 comments
Assignees
Labels
type: Bug Something isn't working

Comments

@ostinru
Copy link

ostinru commented Mar 7, 2025

Apache Cloudberry version

1.6.0 and current main

What happened

Hi, cloudberry team!
I am trying to compile PXF 6.10 (not cloudberry-pxf, as it quite lags behind original PXF v6.4 vs v6.10) for Cloudberry and facing compilation issue:

1.430 src/pxfdelimited_formatter.c: In function 'new_pxfdelimited_state':
1.430 src/pxfdelimited_formatter.c:237:76: error: 'FormatterData' has no member named 'fmt_conversion_proc'
1.430   237 |         fmt_state->enc_conversion_proc = ((FormatterData*) fcinfo->context)->fmt_conversion_proc;
1.430       |                                                                            ^~
1.437 make[1]: Leaving directory '/usr/local/pxf_src/external-table'
1.437 make[1]: *** [<builtin>: src/pxfdelimited_formatter.o] Error 1

As I can see this feature was in Greenplum for 10 years
https://github.com/greenplum-db/gpdb-archive/blame/main/src/include/access/formatter.h#L66

And it was removed during "Initial Cloudberry code dump." 10538ad (with no detailed reasoning available).

Also functions pg_custom_to_server and pg_server_to_custom marked as /* Obsolete? */

I have checked - there is no such file in vanilla postgres (v9.4 and v14.0)

So, question is: what is the reason for removing this fields and functions (hope, you have full history of cloudberry).

What you think should happen instead

No response

How to reproduce

cherry-pick all commits from original PXF to cloudberry-pxf, and trigger build.

following commit will break build:
greenplum-db/pxf-archive@b217687#diff-8f1c5b6536bab3ebb1a81b1f2c978599cc995fe59d3fd5c07ed1fb27b5be6f45R237

Operating System

ubuntu 22.04

Anything else

No response

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@ostinru ostinru added the type: Bug Something isn't working label Mar 7, 2025
Copy link

github-actions bot commented Mar 7, 2025

Hi, @ostinru welcome!🎊 Thanks for taking the time to point this out.🙌

@my-ship-it
Copy link
Contributor

Hi @avamingli, please have a look when have time?

@ostinru
Copy link
Author

ostinru commented Mar 12, 2025

@avamingli, have you had a chance to look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants