Re: byte array as keys in Flink

2021-09-24 Thread Dan Hill
keep us posted if that works 😊 > > > > Thias > > > > > > *From:* Guowei Ma > *Sent:* Freitag, 24. September 2021 09:34 > *To:* Caizhi Weng > *Cc:* Dan Hill ; user > *Subject:* Re: byte array as keys in Flink > > > > Hi Hill > > > > As far

RE: byte array as keys in Flink

2021-09-24 Thread Schwalbe Matthias
us posted if that works 😊 Thias From: Guowei Ma Sent: Freitag, 24. September 2021 09:34 To: Caizhi Weng Cc: Dan Hill ; user Subject: Re: byte array as keys in Flink Hi Hill As far as I know you could not use byte[] as a keyby. You could find more information from [1]. [1] https

Re: byte array as keys in Flink

2021-09-24 Thread Guowei Ma
Hi Hill As far as I know you could not use byte[] as a keyby. You could find more information from [1]. [1] https://nightlies.apache.org/flink/flink-docs-release-1.13/docs/dev/datastream/operators/overview/#keyby Best, Guowei On Fri, Sep 24, 2021 at 3:15 PM Caizhi Weng wrote: > Hi! > > It de

Re: byte array as keys in Flink

2021-09-24 Thread Caizhi Weng
Hi! It depends on the state backend you use. For example if you use a heap memory state backend it is backed by a hash map and it uses the hash code of byte[] to compare the two byte[] (see HeapMapState#put). However for rocksdb state backend it uses the serialized bytes (that is to say, the conte