Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-1570

CatalogUtil newSimpleDataTypeArray should use newSimpleDataType

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: None
    • Labels:
      None

      Description

      It is better CatalogUtil's newSimpleDataTypeArray method use newSimpleDataType. Because their purpose is the same.
      and it is efficient when someone change newSimpleDataType method.

      ```java
      public static DataType [] newSimpleDataTypeArray(Type... types) {
      DataType [] dataTypes = new DataType[types.length];
      for (int i = 0; i < types.length; i++)

      { dataTypes[i] = DataType.newBuilder().setType(types[i]).build(); }

      return dataTypes;
      }
      ```

        Attachments

          Activity

            People

            • Assignee:
              charsyam DaeMyung Kang
              Reporter:
              charsyam DaeMyung Kang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: