Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-7312

SchemaProvider can't be used with dynamic types

Details

    • Improvement
    • Status: Resolved
    • P2
    • Resolution: Won't Fix
    • None
    • 2.14.0
    • sdk-java-core

    Description

      Looking at the java doc comment of SchemaProvider it hints at getting schema's from external system. But as the provider only access type this is in general impossible:

      Say you have 2 dynamic types, say Avro, as a java type they have both GenericRecord. Using the current interface it's impossible to make the difference between both dynamic types.

      As getting information from an external system I propose extending the Provider interface by adding an extra parameter to the interface. It would be a string with a URN.

      The URN could indicated for example

      • Pub/Sub subscription/topic
      • Kafka topic
      • whatever... 

      Attachments

        Activity

          People

            alexvanboxel Alex Van Boxel
            alexvanboxel Alex Van Boxel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: