Segfault-Inc / Multicorn

Data Access Library
https://multicorn.org/
PostgreSQL License
700 stars 145 forks source link

Implement sort pushdown. #118

Closed rjuju closed 6 years ago

rjuju commented 8 years ago

Hello,

This patch implements sort pushdown for multicorn.

As I'm not really familiar with C-Python API, there's probably some Py_DECREF() missing, or maybe some other issues. Let me know if I can help to fix any problem remaning.

Many thanks to Ronan Dunklau for helping with the general design and a lot of issues :)

Regards.

rdunklau commented 8 years ago

A few comments about this PR:

About the code itself:

I'll check the reference counts later on, but this is a very promising patch, with minor issues to work on.

rjuju commented 8 years ago

Yes, I just noticed that I didn't rebase the patch on the latest commit. I'll rebase it.

For the processfdw file, I noticed the file was in dos fileformat, and I changed it to unix. I'll exclude that from the PR.

I simply forgot to add the files for the new tests :) commit ba903c3 fixes that.

I'll work on the other issues as soon as I'll have a proper rebase. Thanks!

rjuju commented 8 years ago

All the problems in the initial pull request should now be corrected. The collation is also now always specified (instead of a simple "default").

jmealo commented 7 years ago

@rdunklau @rjuju: Great collaboration on this PR. Any chance on this getting merged/closed?

rjuju commented 7 years ago

@jmealo thanks! The feature has been merged in a single commit (https://github.com/Kozea/Multicorn/commit/9dd1208f4a50573e4b3aee46e6628733745cb614) instead of this PR to keep history clean. We should have mentioned it here :/

This is available since release 1.3.0

oscardssmith commented 6 years ago

This should probably be closed now that it is merged.

rjuju commented 6 years ago

Indeed, sorry I didn't do it earlier.

Merged in https://github.com/Kozea/Multicorn/commit/9dd1208f4a50573e4b3aee46e6628733745cb614