/*
 * Copyright © 2020 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package io.cdap.delta.api;

import java.util.Objects;

/**
 * Information about a column to read from a source table.
 *
 * In the future, this may contain additional information, such as transformations to perform on the column.
 */
public class SourceColumn {
  private final String name;

  public SourceColumn(String name) {
    this.name = name;
  }

  public String getName() {
    return name;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SourceColumn that = (SourceColumn) o;
    return Objects.equals(name, that.name);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name);
  }
}

@@ -881,16 +881,57 @@
 ng name;
+%0A  private final boolean suppressWarning;
 %0A%0A  publ
@@ -973,70 +973,276 @@
 this
-.name = name;%0A  %7D%0A%0A  public String getName() %7B%0A    return name
+(name, false);%0A  %7D%0A%0A  public SourceColumn(String name, boolean suppressWarning) %7B%0A    this.name = name;%0A    this.suppressWarning = suppressWarning;%0A  %7D%0A%0A  public String getName() %7B%0A    return name;%0A  %7D%0A%0A  public boolean isSuppressWarning() %7B%0A    return suppressWarning
 ;%0A  
@@ -1495,24 +1495,81 @@
 , that.name)
+ && Objects.equals(suppressWarning, that.suppressWarning)
 ;%0A  %7D%0A%0A  @Ov
@@ -1629,16 +1629,33 @@
 ash(name
+, suppressWarning
 );%0A  %7D%0A%7D

add suppressWarning property to SourceColumn