You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "xiaoyong-z (via GitHub)" <gi...@apache.org> on 2023/01/28 12:59:43 UTC

[GitHub] [arrow-datafusion] xiaoyong-z opened a new issue, #5100: Sort operator disappear in physical_plan

xiaoyong-z opened a new issue, #5100:
URL: https://github.com/apache/arrow-datafusion/issues/5100

   **Describe the bug**
   A clear and concise description of what the bug is.
   After we disable the repartition ProjectionExec when it does not compute anything, sort operator in subquery went wrong
   
   **To Reproduce**
   Steps to reproduce the behavior:
   CREATE EXTERNAL TABLE aggregate_test_100 (
     c1  VARCHAR NOT NULL,
     c2  TINYINT NOT NULL,
     c3  SMALLINT NOT NULL,
     c4  SMALLINT,
     c5  INT,
     c6  BIGINT NOT NULL,
     c7  SMALLINT NOT NULL,
     c8  INT NOT NULL,
     c9  BIGINT UNSIGNED NOT NULL,
     c10 VARCHAR NOT NULL,
     c11 FLOAT NOT NULL,
     c12 DOUBLE NOT NULL,
     c13 VARCHAR NOT NULL
   )
   STORED AS CSV
   WITH HEADER ROW
   LOCATION 'xxxx/csv/aggregate_test_100.csv';
   
   SELECT * FROM aggregate_test_100 ORDER BY c13 LIMIT 1;
   0VVIHzxWtNOFLtnhjHEKjXaJOSLJfm
   
   SELECT array_agg(c13) FROM (SELECT * FROM aggregate_test_100 ORDER BY c13 LIMIT 1);
   6WfVFBVGJSQb7FhA7E0lBwdvjfZnSW
   
   explain  SELECT array_agg(c13) FROM (SELECT * FROM aggregate_test_100 ORDER BY c13 LIMIT 1);
   ![image](https://user-images.githubusercontent.com/31178013/215267482-c6b51e61-aca8-4663-ac04-e7b1d7e92645.png)
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   There is a sort operator in logical_plan, but there is no sort exec in c. 
   
   **Additional context**
   Add any other context about the problem here.
   Found in https://github.com/apache/arrow-datafusion/pull/5074


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] xiaoyong-z commented on issue #5100: Sort operator disappear in physical_plan

Posted by "xiaoyong-z (via GitHub)" <gi...@apache.org>.
xiaoyong-z commented on issue #5100:
URL: https://github.com/apache/arrow-datafusion/issues/5100#issuecomment-1407399412

   it seems that sort enforing deletes this:
   ![image](https://user-images.githubusercontent.com/31178013/215268840-074a2bac-7636-4089-87d4-f6bd9d8a9848.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] alamb closed issue #5100: Sort operator disappear in physical_plan

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #5100: Sort operator disappear in physical_plan
URL: https://github.com/apache/arrow-datafusion/issues/5100


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] xiaoyong-z commented on issue #5100: Sort operator disappear in physical_plan

Posted by "xiaoyong-z (via GitHub)" <gi...@apache.org>.
xiaoyong-z commented on issue #5100:
URL: https://github.com/apache/arrow-datafusion/issues/5100#issuecomment-1407396989

   plan in master branch
   ![image](https://user-images.githubusercontent.com/31178013/215268319-e77ccefe-0388-4c15-ada3-8f50c78caabd.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] ozankabak commented on issue #5100: Sort operator disappear in physical_plan

Posted by "ozankabak (via GitHub)" <gi...@apache.org>.
ozankabak commented on issue #5100:
URL: https://github.com/apache/arrow-datafusion/issues/5100#issuecomment-1407414845

   Yes, this seems to be a bug. Thanks for reporting, @mustafasrepo will fix it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org