Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-7612

Modify the Text, Excel format config, etc. immutable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      See note in the ExcelFormatConfig class. The class is designed with mutable fields. However, if any of the fields are actually changed while the excel reader pluguin is active, the result is undefined. This is true, by the way, for all storage and plugin configs.

      Would be better for the class to be immutable with final fields. By doing this it becomes impossible for uninformed code to grab a config from the plugin registry, modify it, and put it back, causing the registry to become confused due to its value-based config map.

      Attachments

        Issue Links

          Activity

            People

              Paul.Rogers Paul Rogers
              Paul.Rogers Paul Rogers
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: