-
Notifications
You must be signed in to change notification settings - Fork 156
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
Questions about exchangeKind of ExchangeRel #519
Comments
I believe the mappings are (substrait => calcite) single bucket => singleton |
@jacques-n thanks for the reply! But in https://substrait.io/relations/physical_relations/#exchange-operator, it says the scatter means
So is't the scatter corresponding to hash distributed?
If I understand it correctly, it seems that one record will be distributed to multi-partitions if we are using muti-bucket type. |
Yeah, I shouldn't have tried to reply from memory, sorry about that! Ill write more up tomorrow. I'm not sure there is a multibucket mapping in Calcite. Its for things like skew join where you might broadcast a set of super common high cardinality keys to some nodes and you a different distribution pattern for less common keys. Will work on writing something more intelligent up tomorrow. Again, sorry about the misdirection! |
@jacques-n hello, May I ask is there any progress on this matter? |
Hey, sorry about slow response. The easy ones. Going to use calcite to Substrait since that seems slightly clearer (since things aren't 1:1) |
I am trying to add support in Isthmus for converting Apache Calcite
LogicalExchange
, as what I described in substrait-io/substrait-java#153. But I run into some problems about how to map the types of exchange from Calcite to Substrait.In Apache Calcite, there are 6 types of exchange:
In Substrait, there are 5 types of exchange:
So my questions are:
Thanks in advance!
The text was updated successfully, but these errors were encountered: