Class Cast.Narrowing

java.lang.Object
org.apache.beam.sdk.schemas.transforms.Cast.Narrowing
All Implemented Interfaces:
Serializable, Cast.Validator
Enclosing class:
Cast<T>

public static class Cast.Narrowing extends Object implements Cast.Validator
Narrowing changes type without guarantee to preserve data.

Standard narrowing conversions:

Row narrowing

  • wider schema to schema with a subset of fields
  • non-nullable fields to nullable fields
  • nullable fields to non-nullable fields
See Also: