Skip to content

Commit

Permalink
Change table column names for Iceberg API
Browse files Browse the repository at this point in the history
  • Loading branch information
lbooker42 committed Jun 24, 2024
1 parent 5fab249 commit fe0ced6
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ public Table listNamespacesAsTable(@NotNull final Namespace namespace) {

// Create the column source(s)
final String[] namespaceArr = new String[(int) size];
columnSourceMap.put("namespace",
columnSourceMap.put("Namespace",
InMemoryColumnSource.getImmutableMemoryColumnSource(namespaceArr, String.class, null));

final Namespace[] namespaceObjectArr = new Namespace[(int) size];
columnSourceMap.put("namespace_object",
columnSourceMap.put("NamespaceObject",
InMemoryColumnSource.getImmutableMemoryColumnSource(namespaceObjectArr, Namespace.class, null));

// Populate the column source arrays
Expand Down Expand Up @@ -251,15 +251,15 @@ public Table listTablesAsTable(@NotNull final Namespace namespace) {

// Create the column source(s)
final String[] namespaceArr = new String[(int) size];
columnSourceMap.put("namespace",
columnSourceMap.put("Namespace",
InMemoryColumnSource.getImmutableMemoryColumnSource(namespaceArr, String.class, null));

final String[] tableNameArr = new String[(int) size];
columnSourceMap.put("table_name",
columnSourceMap.put("TableName",
InMemoryColumnSource.getImmutableMemoryColumnSource(tableNameArr, String.class, null));

final TableIdentifier[] tableIdentifierArr = new TableIdentifier[(int) size];
columnSourceMap.put("table_identifier_object",
columnSourceMap.put("TableIdentifierObject",
InMemoryColumnSource.getImmutableMemoryColumnSource(tableIdentifierArr, TableIdentifier.class, null));

// Populate the column source arrays
Expand Down Expand Up @@ -306,22 +306,22 @@ public Table listSnapshotsAsTable(@NotNull final TableIdentifier tableIdentifier

// Create the column source(s)
final long[] idArr = new long[(int) size];
columnSourceMap.put("id", InMemoryColumnSource.getImmutableMemoryColumnSource(idArr, long.class, null));
columnSourceMap.put("Id", InMemoryColumnSource.getImmutableMemoryColumnSource(idArr, long.class, null));

final long[] timestampArr = new long[(int) size];
columnSourceMap.put("timestamp_ms",
columnSourceMap.put("TimestampMs",
InMemoryColumnSource.getImmutableMemoryColumnSource(timestampArr, long.class, null));

final String[] operatorArr = new String[(int) size];
columnSourceMap.put("operation",
columnSourceMap.put("Operation",
InMemoryColumnSource.getImmutableMemoryColumnSource(operatorArr, String.class, null));

final Map<String, String>[] summaryArr = new Map[(int) size];
columnSourceMap.put("summary",
columnSourceMap.put("Summary",
InMemoryColumnSource.getImmutableMemoryColumnSource(summaryArr, Map.class, null));

final Snapshot[] snapshotArr = new Snapshot[(int) size];
columnSourceMap.put("snapshot_object",
columnSourceMap.put("SnapshotObject",
InMemoryColumnSource.getImmutableMemoryColumnSource(snapshotArr, Snapshot.class, null));

// Populate the column source(s)
Expand Down

0 comments on commit fe0ced6

Please sign in to comment.