Skip to content

Commit

Permalink
fix not showing shared arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitrisStaratzis committed May 11, 2023
1 parent eb38375 commit aab6839
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions src/main/java/io/tiledb/TileDBCloudConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,20 +140,23 @@ public DatabaseMetaData getMetaData() throws SQLException {
}

try {

List<String> sharedTo = Arrays.asList(namespace);

ArrayBrowserData resultShared =
arrayApi.arraysBrowserSharedGet(
null,
null,
null,
namespace,
null,
null,
null,
null,
null,
null,
excludeFileType,
null,
null);
sharedTo);
tileDBCloudDatabaseMetadata.setArraysShared(resultShared);
} catch (Exception e) {
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/tiledb/TileDBCloudTablesResultSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public boolean wasNull() throws SQLException {

@Override
public String getString(int columnIndex) throws SQLException {
return "tiledb://" + namespace + "/" + currentArray.getName();
return currentArray.getTiledbUri();
}

@Override
Expand Down Expand Up @@ -169,7 +169,7 @@ public String getString(String columnLabel) throws SQLException {

switch (columnLabel) {
case "TABLE_NAME":
return "tiledb://" + this.namespace + "/" + this.currentArray.getName();
return currentArray.getTiledbUri();
case "REMARKS":
return ownership;
case "TABLE_TYPE":
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/io/tiledb/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

public class Util {
public static int VERSION_MINOR = 1;
public static final int VERSION_REVISION = 0;
public static final int VERSION_REVISION = 3;
public static int VERSION_MAJOR = 0;

public static int TILEDB_CLOUD_VERSION_MINOR = 9;
public static int TILEDB_CLOUD_VERSION_REVISION = 0;
public static int TILEDB_CLOUD_VERSION_MINOR = 0;
public static int TILEDB_CLOUD_VERSION_REVISION = 2;
public static int TILEDB_CLOUD_VERSION_MAJOR = 0;

public static String SCHEMA_NAME = "TileDB Schema";
public static String SCHEMA_NAME = "All TileDB arrays";
}

0 comments on commit aab6839

Please sign in to comment.