arrow_kernels_dump.cpp 934 B

123456789101112131415161718192021222324
  1. #include <yql/essentials/minikql/invoke_builtins/mkql_builtins.h>
  2. #include <yql/essentials/public/udf/udf_version.h>
  3. #include <util/stream/output.h>
  4. #include <util/generic/algorithm.h>
  5. #include <util/folder/path.h>
  6. int main(int argc, char **argv) {
  7. Y_UNUSED(argc);
  8. Cerr << TFsPath(argv[0]).GetName() << " ABI version: " << NKikimr::NUdf::CurrentAbiVersionStr() << Endl;
  9. auto builtins = NKikimr::NMiniKQL::CreateBuiltinRegistry();
  10. auto families = builtins->GetAllKernelFamilies();
  11. Sort(families, [](const auto& x, const auto& y) { return x.first < y.first; });
  12. ui64 totalKernels = 0;
  13. for (const auto& f : families) {
  14. auto numKernels = f.second->GetAllKernels().size();
  15. Cout << f.first << ": " << numKernels << " kernels" << Endl;
  16. totalKernels += numKernels;
  17. }
  18. Cout << "Total kernel families: " << families.size() << ", kernels: " << totalKernels << Endl;
  19. return 0;
  20. }