From 29882a88c9f08680e4df6b86f90e5400f3a0fe76 Mon Sep 17 00:00:00 2001 From: Dianjin Wang Date: Wed, 14 Oct 2026 10:27:35 +0800 Subject: [PATCH] Add Apache HAWQ attribution for gpcontrib/pxf_fdw Greenplum Database took part of gpcontrib/pxf_fdw from the PXF external table client in Apache HAWQ in 2017, and six of its files still contain HAWQ code. Neither LICENSE nor NOTICE mentioned HAWQ. List those six files in the Apache License part of the Greenplum section in LICENSE. Add HAWQ's copyright notice to NOTICE, worded the same way as in cloudberry-pxf's NOTICE. The table shows what fraction of each file's code lines (whitespace normalized) also appear in the HAWQ file: pxf_filter.h 64% src/include/access/pxffilters.h libchurl.c 60% src/backend/access/external/libchurl.c pxf_filter.c 50% src/backend/access/external/pxffilters.c libchurl.h 33% src/include/access/libchurl.h pxf_fragment.h 30% src/include/access/pxfutils.h pxf_header.c 26% src/backend/access/external/pxfheaders.c pxf_bridge.c, pxf_bridge.h and pxf_header.h carry the same ASF header but have no lines in common with HAWQ, and LICENSE now says so. pxf_deparse.c and pxf_option.c come from postgres_fdw and file_fdw, and the PostgreSQL section already covers them. Assisted-by: Claude Code --- LICENSE | 15 +++++++++++++++ NOTICE | 7 +++++++ 2 files changed, 22 insertions(+) diff --git a/LICENSE b/LICENSE index cc431fc18c8..384cb4e7d19 100644 --- a/LICENSE +++ b/LICENSE @@ -495,6 +495,21 @@ The Greenplum Database software includes: ---------------------------- Apache License - Version 2.0 + PXF foreign data wrapper client code derived from Apache HAWQ, + copyright The Apache Software Foundation: + gpcontrib/pxf_fdw/libchurl.c + gpcontrib/pxf_fdw/libchurl.h + gpcontrib/pxf_fdw/pxf_filter.c + gpcontrib/pxf_fdw/pxf_filter.h + gpcontrib/pxf_fdw/pxf_fragment.h + gpcontrib/pxf_fdw/pxf_header.c + (see the Apache License above, and NOTICE) + Greenplum Database took this code from HAWQ's PXF external table + client (src/backend/access/external and src/include/access in + Apache HAWQ) and later reworked it into a foreign data wrapper. + pxf_bridge.c, pxf_bridge.h and pxf_header.h in the same directory + carry the same Apache License header but share no code with HAWQ. + cmockery unit testing framework, copyright 2008 Google Inc.: src/test/unit/cmockery (see the Apache License above; also shipped in-tree as diff --git a/NOTICE b/NOTICE index 0226ded13da..475ffb11541 100644 --- a/NOTICE +++ b/NOTICE @@ -10,3 +10,10 @@ This product includes software originally developed by VMware. Greenplum Database Copyright (c) 2004-2020 VMware, Inc. or its affiliates. All Rights Reserved. + +--------------------------------------------------------------------------- + +This product includes software originally developed by Apache HAWQ. + +Apache HAWQ +Copyright 2017 The Apache Software Foundation