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
[GLUTEN-5569][VL] Hide child WriteFilesExec from VeloxColumnarWriteFilesExec on UI #5698
base: main
Are you sure you want to change the base?
Conversation
Please, do not make things complex... I strongly suggest revert previous pr and just inherit case class for now. |
I don't agree. Please let me know if any Scala project with good code quality has case-class inheritance. To me doing case-class inheritance makes thing complex. I know Scala doesn't do well for extensibility of case-class, I don't like this limitation either. But if it's the principle of Scala, I'd follow it. |
@zhztheplayer @ulysses-you |
I believe @ulysses-you has submitted this. I knew that should definitely help on this issue however the old Spark versions will take long time to leave from Gluten. So any "temporary" workaround on the issue could become somewhat long-term solution in Gluten. That's a reason why I think we should not rely on workarounds... |
My point is that if there is an actually issue with case class, I'm fine to change it since it is a fix, otherwise just add a todo and leave it. I searched Spark code repo, and really find a case... is it valid for you @zhztheplayer ? Yes, Spark master branch has a trait for this but older version did not. |
The case is not really case-class inheritance we are discussing here. It just creates an alias from Having said that I am personally not into the approach either. It's better to be
Once we get some, it could be very hard to trouble-shoot. Say Spark's subquery / exchange reuse rely on case-class equality, and test cases could rely on case-class's I remember we used to suffer from one or several similar case-class inheritance issues from very early stage of Gluten (probably Gazelle, I can't recall it), and the issues really costed us effort to debug and fix. If we don't keep cleaning similar code, I highly doubt we will soon face another issue again. |
a13565e
to
611bdfd
Compare
Fixes #5569
Before:
After: