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

BigtableIO should not try to validate runtime parameters at construction time.

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Won't Fix
    • None
    • Missing
    • io-java-gcp
    • None

    Description

      The workaround for user is to have some default values set and override them at runtime.

      One example of validating runtime parameter at construction time is following, and there are could be more.

       
          @Override
          public void validate()

      {       ValueProvider<String> tableId = config.getTableId();       checkArgument(tableId != null && tableId.isAccessible() && !tableId.get().isEmpty(),         "tableId was not supplied");     }

       
      A reported issue on stackoverflow: https://stackoverflow.com/questions/49595921/valueprovider-type-parameters-not-getting-honored-at-the-template-execution-time
       
      One concern I have is that if we disable the validation at construction time, how do we validate it at runtime? Ideally, users should use template parameter metadata for validation, but that is optional.
       
       
       

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevinsi4508 Kevin Si
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified