Skip to content

Commit

Permalink
BUGFIX for issue 543
Browse files Browse the repository at this point in the history
robinhood#543

Passes key_type to derive if key has "type" attribute.
  • Loading branch information
P. Scott DeVos committed Dec 26, 2021
1 parent 01b4c0a commit e15375a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion faust/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,12 @@ def get_key(withdrawal):
suffix = f'-{name}-repartition'
p = partitions if partitions else self.app.conf.topic_partitions
channel = cast(ChannelT, self.channel).derive(
prefix=prefix, suffix=suffix, partitions=p, internal=True)
key_type=key.type if hasattr(key, 'type') else None,
prefix=prefix,
suffix=suffix,
partitions=p,
internal=True,
)
format_key = self._format_key

channel_it = aiter(channel)
Expand Down

0 comments on commit e15375a

Please sign in to comment.