Skip to content

[Bug] [SinkMetrics] the sink metrics collect will get NPE when data type is String[] #6455

@liunaijie

Description

@liunaijie

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

SinkFlowLifeCycle#250
https://github.com/apache/seatunnel/blob/dev/seatunnel-api/src/main/java/org/apache/seatunnel/api/table/type/SeaTunnelRow.java#L240

in sink life cycle, will summary the sink bytes. but if the data type is string array, doesn't have null check, will get NPE when value is null.

SeaTunnel Version

2.3.4

SeaTunnel Config

na

Running Command

na

Error Exception

NPE

Zeta or Flink or Spark Version

No response

Java or Scala Version

No response

Screenshots

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions