Skip to content

GlobalTable doesnt respect schema #632

@kokorins

Description

@kokorins

Checklist

  • I have included information about relevant versions.
  • I have verified that the issue persists when using the master branch of Faust.

Steps to reproduce

Tell us what you did to cause something to happen.

table = app.GlobalTable(
      "name"
        schema=faust.Schema(
            value_serializer=PydanticJsonSerializer(PydanticModelDerivative),
        ),
)

## Expected behavior

I've set up a custom codec for value_serializer on schema of a GlobalTable. This works well if GlobalTable is replaced with just Table.

## Actual behavior

Default codec is in use.

<Schema: KT=default (json) VT=default (json)>


# Versions

* Python version: 3.11
* Faust version: 0.11.0
* Operating system: ubuntu 22.04
* Kafka version: -
* RocksDB version (if applicable): -

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