You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@texera.apache.org by "chenlica (via GitHub)" <gi...@apache.org> on 2025/09/24 18:29:19 UTC

[I] Reimplementing the Python-based Sort operator using Scala [texera]

chenlica opened a new issue, #3763:
URL: https://github.com/apache/texera/issues/3763

   The current Sort operator (core/workflow-operator/src/main/scala/edu/uci/ics/amber/operator/sort/SortOpDesc.scala) was implemented in Python. We want to replace it with a native Scala implementation.


-- 
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: dev-unsubscribe@texera.apache.org.apache.org

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


Re: [I] Add a Sort operator using Scala [texera]

Posted by "chenlica (via GitHub)" <gi...@apache.org>.
chenlica closed issue #3763: Add a Sort operator using Scala
URL: https://github.com/apache/texera/issues/3763


-- 
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: dev-unsubscribe@texera.apache.org

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


Re: [I] Reimplementing the Python-based Sort operator using Scala [texera]

Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang commented on issue #3763:
URL: https://github.com/apache/texera/issues/3763#issuecomment-3330981687

   Down the road we could fuse UDFs together to reduce data transfer, especially under the use case of sort + visualization (python, plotly). For short term It can be useful for testing purposes such as benchmark for papers. And it looks good to have more operators in general.
   
   I see no big harm from keeping it? it is functional, after all. 
   
   As for performance, Python sorting is generally slower than Scala sorting, but it’s unclear how much of the slowdown comes from cross-language data transfer versus the sorting itself. From Meng’s earlier inspection, it seems the sorting itself is not particularly slow.
   
   All in all, I vote for adding a new implementation of Scala sort and let users choose, instead of replacing the existing Python sort.


-- 
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: dev-unsubscribe@texera.apache.org

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


Re: [I] Add a Sort operator using Scala [texera]

Posted by "chenlica (via GitHub)" <gi...@apache.org>.
chenlica commented on issue #3763:
URL: https://github.com/apache/texera/issues/3763#issuecomment-3331001520

   Revised description: we want to introduce a new Sort operator using Scala.


-- 
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: dev-unsubscribe@texera.apache.org

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


Re: [I] Reimplementing the Python-based Sort operator using Scala [texera]

Posted by "chenlica (via GitHub)" <gi...@apache.org>.
chenlica commented on issue #3763:
URL: https://github.com/apache/texera/issues/3763#issuecomment-3330999727

   Carlos, @mengw15 , and I had another discussion and agreed with @Yicong-Huang .  We will revise this issue and raise a PR to add a new Sort operator in Scala.  We may raise another issue to modify the compiler to use the new Scala Sort operator.


-- 
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: dev-unsubscribe@texera.apache.org

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


Re: [I] Reimplementing the Python-based Sort operator using Scala [texera]

Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang commented on issue #3763:
URL: https://github.com/apache/texera/issues/3763#issuecomment-3330176305

   Instead of replacing it, can we add a new one? Again for the same logical operator we may be able to choose different physical operators. I see python's sort can be useful down the road. If we add one more Scala implementation of Sort, that'd be great.


-- 
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: dev-unsubscribe@texera.apache.org

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


Re: [I] Reimplementing the Python-based Sort operator using Scala [texera]

Posted by "chenlica (via GitHub)" <gi...@apache.org>.
chenlica commented on issue #3763:
URL: https://github.com/apache/texera/issues/3763#issuecomment-3330237912

   Meng, Carlos, and I had a discussion. We understand the reason of separating a logical operator from a physical operator.  For this particular Sort operator, is there any benefit of keeping the Python implementation compared to the new Scala implementation?  If not, maybe we can do the replacement?  We can keep this separation for other operators in the future.


-- 
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: dev-unsubscribe@texera.apache.org

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