Skip to content

Commit aab6839

Browse files
fix not showing shared arrays
1 parent eb38375 commit aab6839

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

src/main/java/io/tiledb/TileDBCloudConnection.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,20 +140,23 @@ public DatabaseMetaData getMetaData() throws SQLException {
140140
}
141141

142142
try {
143+
144+
List<String> sharedTo = Arrays.asList(namespace);
145+
143146
ArrayBrowserData resultShared =
144147
arrayApi.arraysBrowserSharedGet(
145148
null,
146149
null,
147150
null,
148-
namespace,
151+
null,
149152
null,
150153
null,
151154
null,
152155
null,
153156
null,
154157
excludeFileType,
155158
null,
156-
null);
159+
sharedTo);
157160
tileDBCloudDatabaseMetadata.setArraysShared(resultShared);
158161
} catch (Exception e) {
159162
}

src/main/java/io/tiledb/TileDBCloudTablesResultSet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public boolean wasNull() throws SQLException {
7272

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

7878
@Override
@@ -169,7 +169,7 @@ public String getString(String columnLabel) throws SQLException {
169169

170170
switch (columnLabel) {
171171
case "TABLE_NAME":
172-
return "tiledb://" + this.namespace + "/" + this.currentArray.getName();
172+
return currentArray.getTiledbUri();
173173
case "REMARKS":
174174
return ownership;
175175
case "TABLE_TYPE":

src/main/java/io/tiledb/util/Util.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
public class Util {
44
public static int VERSION_MINOR = 1;
5-
public static final int VERSION_REVISION = 0;
5+
public static final int VERSION_REVISION = 3;
66
public static int VERSION_MAJOR = 0;
77

8-
public static int TILEDB_CLOUD_VERSION_MINOR = 9;
9-
public static int TILEDB_CLOUD_VERSION_REVISION = 0;
8+
public static int TILEDB_CLOUD_VERSION_MINOR = 0;
9+
public static int TILEDB_CLOUD_VERSION_REVISION = 2;
1010
public static int TILEDB_CLOUD_VERSION_MAJOR = 0;
1111

12-
public static String SCHEMA_NAME = "TileDB Schema";
12+
public static String SCHEMA_NAME = "All TileDB arrays";
1313
}

0 commit comments

Comments
 (0)