Menu

#760 GCSORT - INCLUDE COND without COPY

contrib
closed
GCSORT (10)
5 - default
2021-09-03
2021-09-02
Maksym
No

Hi,
During the comparing with MFSORT, I've got different results on SORT with only INCLUDE COND.

Example on file with all records that respect the condition:
MFSORT --> INCLUDE COND=(1,3,PD,EQ,0) the output file is equals to input
GCSORT --> INCLUDE COND=(1,3,PD,EQ,0) the output file is empty

MFSORT --> SORT FIELDS=COPY INCLUDE COND=(1,3,PD,EQ,0) the output file is equals to input
GCSORT --> SORT FIELDS=COPY INCLUDE COND=(1,3,PD,EQ,0) the output file is equals to input

MFSORT --> OPTION COPY INCLUDE COND=(1,3,PD,EQ,0) the output file is equals to input
GCSORT --> OPTION COPY INCLUDE COND=(1,3,PD,EQ,0) the output file is equals to input

Is possible to implement the same behavior in GCSORT?

Thank you.

Discussion

  • Simon Sobisch

    Simon Sobisch - 2021-09-02
    • status: open --> accepted
     
  • Sauro Menna

    Sauro Menna - 2021-09-03

    Hello,
    revision [contrib:r972] (source job.c) contains the implementation of what is requested.
    Now you can also execute the INCLUDE COND statement alone without the COPY command.

    Greetings.
    Sauro

     

    Related

    Commit: [r972]


    Last edit: Simon Sobisch 2021-09-03
    • Maksym

      Maksym - 2021-09-03

      Hello,
      I tested the updated version and it's working properly.

      Thank you for the prompt fix.
      Maksym

       
  • Simon Sobisch

    Simon Sobisch - 2021-09-03
    • labels: --> GCSORT
    • status: accepted --> closed
     
  • Simon Sobisch

    Simon Sobisch - 2021-09-03

    Thanks for the report - and the quick fix!

     

Log in to post a comment.

MongoDB Logo MongoDB