Re: [DISCUSS] KIP-348 Eliminate null from SourceTask#poll()

2018-08-07 Thread Colin McCabe
Thanks, Chia-Ping. Looks good to me. regards, Colin On Sat, Aug 4, 2018, at 01:17, Chia-Ping Tsai wrote: > hi Colin > > Thanks for the reviews! You are totally right. The description of > KIP-348 is not accurate. The purpose of KIP-348 is to encourage > connector user to substitute empty list

Re: [DISCUSS] KIP-348 Eliminate null from SourceTask#poll()

2018-08-04 Thread Chia-Ping Tsai
hi Colin Thanks for the reviews! You are totally right. The description of KIP-348 is not accurate. The purpose of KIP-348 is to encourage connector user to substitute empty list to null value, but at the same time returning null still work. I will update the KIP-348 ASAP. cheers, Chia-Ping

Re: [DISCUSS] KIP-348 Eliminate null from SourceTask#poll()

2018-08-03 Thread Colin McCabe
"No changes to public interface" doesn't seem accurate here. SourceTask#poll is a public interface, right? Kafka connectors that are out-of-tree would certainly break if we disallowed returning null from this method. However, reading the KIP more closely, it seems like both null and the empty

[DISCUSS] KIP-348 Eliminate null from SourceTask#poll()

2018-07-31 Thread Chia-Ping Tsai
hi all, Please take a look at the KIP-348[1] if you have free cycel. It bring a little change to the usage of SourceTask#poll() [1] https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=89065853&moved=true#KIP-348EliminatenullfromSourceTask#poll()-Status Cheers, Chia-Ping