Skip to content

Commit

Permalink
Correct parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
losipiuk authored and findepi committed Jul 25, 2020
1 parent 74edaa3 commit 0eace40
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public enum BucketingType
{
NONE {
@Override
public String getHiveClustering(String columnNames, int buckets)
public String getHiveClustering(String columnName, int buckets)
{
return "";
}
Expand All @@ -38,9 +38,9 @@ public List<String> getHiveTableProperties()

BUCKETED_DEFAULT {
@Override
public String getHiveClustering(String columnNames, int buckets)
public String getHiveClustering(String columnName, int buckets)
{
return defaultHiveClustering(columnNames, buckets);
return defaultHiveClustering(columnName, buckets);
}

@Override
Expand All @@ -52,9 +52,9 @@ public List<String> getHiveTableProperties()

BUCKETED_V1 {
@Override
public String getHiveClustering(String columnNames, int buckets)
public String getHiveClustering(String columnName, int buckets)
{
return defaultHiveClustering(columnNames, buckets);
return defaultHiveClustering(columnName, buckets);
}

@Override
Expand All @@ -66,9 +66,9 @@ public List<String> getHiveTableProperties()

BUCKETED_V2 {
@Override
public String getHiveClustering(String columnNames, int buckets)
public String getHiveClustering(String columnName, int buckets)
{
return defaultHiveClustering(columnNames, buckets);
return defaultHiveClustering(columnName, buckets);
}

@Override
Expand All @@ -83,9 +83,9 @@ public List<String> getHiveTableProperties()

public abstract List<String> getHiveTableProperties();

private static String defaultHiveClustering(String columnNames, int buckets)
private static String defaultHiveClustering(String columnName, int buckets)
{
requireNonNull(columnNames, "columnNames is null");
return format("CLUSTERED BY(%s) INTO %s BUCKETS", columnNames, buckets);
requireNonNull(columnName, "columnName is null");
return format("CLUSTERED BY(%s) INTO %s BUCKETS", columnName, buckets);
}
}

0 comments on commit 0eace40

Please sign in to comment.