Skip to content

Commit

Permalink
nit: change order of the methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-bzabek committed Nov 28, 2024
1 parent 08c103c commit 7ff97e7
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,18 +498,6 @@ public boolean hasSchemaEvolutionPermission(String tableName, String role) {
return hasPermission;
}

/**
* Alter table to add columns according to a map from columnNames to their types
*
* @param tableName the name of the table
* @param columnInfosMap the mapping from the columnNames to their infos
*/
@Override
public void appendColumnsToTable(String tableName, Map<String, ColumnInfos> columnInfosMap) {
LOGGER.debug("Appending columns to snowflake table");
appendColumnsToTable(tableName, columnInfosMap, false);
}

/**
* Alter iceberg table to modify columns datatype
*
Expand Down Expand Up @@ -540,6 +528,18 @@ private String generateAlterSetDataTypeQuery(Map<String, ColumnInfos> columnsToM
return setDataTypeQuery.toString();
}

/**
* Alter table to add columns according to a map from columnNames to their types
*
* @param tableName the name of the table
* @param columnInfosMap the mapping from the columnNames to their infos
*/
@Override
public void appendColumnsToTable(String tableName, Map<String, ColumnInfos> columnInfosMap) {
LOGGER.debug("Appending columns to snowflake table");
appendColumnsToTable(tableName, columnInfosMap, false);
}

/**
* Alter iceberg table to add columns according to a map from columnNames to their types
*
Expand Down

0 comments on commit 7ff97e7

Please sign in to comment.