Hi Krzysztof, The blog post is not building a lookup source but only a scan source. For scan sources you can choose between the old RichSourceFunction or the new unified Source interface.
For lookup sources you need to implement either a TableFunction or a AsyncTableFunction there are currently afaik no other options. Best, Fabian