-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-11650: [Rust][DataFusion] Add Postgres License #9507
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
Conversation
|
Could you show existing DataFusion codes and documentations that are derived from PostgreSQL? In C++, we reuse existing codes with the original license. For example, https://github.com/apache/arrow/blob/master/cpp/src/arrow/status.h uses the original BSD-style license. |
|
Thanks @kou Here is the original discussion that details what we are referencing: #9243 (comment) Do you have any feedback given this context? |
alamb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this makes sense to me, but I am not a lawyer nor an expert in such matters so I think we should wait for some other comments before merging this in
|
Thanks. I think that we should mention which codes and documentations are derived from PostgreSQL. For example, the example documentation showed in #9243 (comment) should be mentioned. For example, in C++, https://github.com/apache/arrow/blob/master/cpp/src/arrow/status.h does it in file header. Can we do it in DataFusion? |
My concern is that if we specific file based references for this license it will be very easy to miss when more work is done in the future which may make the project non-compliant. This is why I used general language. |
|
Umm. Generally, I think that we should behave as careful as possible when we reuse codes and documentations of other projects. For example, we should mention that "this code/documentation is derived from PostgreSQL" in each pull request when we add code/documentation derived from PostgreSQL. My concern is that general language approach may lack the behavior. (Note that we don't have a consensus whether the behavior is expected or not yet.) FYI: I'm not particular about file based approach. We can use suitable approach. For example, there is comment based approach in C++:
How about discuss this on arrow-devel@ ? |
|
Thanks @kou . How about we merge this plus we add words like this to the relevant code:
|
|
Generally, the general language plus ... approach looks good to me. But the added words concern me. I'm not sure that it satisfies "provided that the above copyright notice" in PostgreSQL license. I found a guideline when we use third-party works: https://www.apache.org/legal/src-headers.html#3party
If we don't mention PostgreSQL derived codes/documentations explicitly, I think that we and users can't associate PostgreSQL derived codes/documentations with The PostgreSQL Global Development Group copyright. I'm not sure that it satisfies 1. If we choose 4. approach, can we use If we choose 5. approach, we should discuss this on dev@. Anyway, I think that we should discuss this on dev@. If we need, ASF will help us with legal concerns. |
|
I have raised a topic on the dev@ list |
|
Thanks! |
This PR is a child of #9243 It does a few things that are hard to separate: - fixes the behavior of `concat` and `trim` functions to be in line with the Postgres implementations - restructures some of the code base (mainly sorting and adding tests) to facilitate easier testing and implementation of the remainder of #9243 @alamb @jorgecarleitao please review but merging will be dependent on #9507 Closes #9551 from seddonm1/concat Authored-by: Mike Seddon <seddonm1@gmail.com> Signed-off-by: Andrew Lamb <andrew@nerdnetworks.org>
|
The datafusion source code have been pulled out to its own repository: https://github.com/apache/arrow-datafusion |
DataFusion aims to support the PostgreSQL compatibility. To achieve compatibility parts of the DataFusion code base may have reproduced code and documentation from the PostgreSQL project and needs the license to reflect this.