Skip to content

.kfk.Metadata returns topic information as lists of dictionaries instead of tables #77

@mattmaynes

Description

@mattmaynes

When you invoke .kfk.Metadata, the topics return is a list of dictionaries that have aligned keys but is not typed as 98h. This makes it impossible to do select or exec on that data to filter out the topic you might be interested in.

client:.kfk.Consumer[`metadata.broker.list`group.id!(`$"localhost:9092";`0)];
info: .kfk.Metadata client
type info `topics
/=> 0h
type each info`topics
/=> 99h 99h
key each info`topics
/=> topic err partitions
/=> topic err partitions

The same is then true for the partitions key that is nested under the topics table. I am using version 1.5.0 in kdb+ 3.6 2019.11.13 on macOS 10.15.7.

KDB+ 3.6 2019.11.13 Copyright (C) 1993-2019 Kx Systems
m64/ 4()core 8192MB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions