Name conflict running quickstart examples


#1

I followed the instructions in https://docs.tiledb.io/en/latest/quickstart.html and found that running quickstart_* example programs ran into namespace conflicts due to the array_names of each example being the same as the executable itself.

Here is an example of this:
tiledb@fd0e9fa1e990:~/examples/cpp_api$ ./quickstart_sparse
terminate called after throwing an instance of ‘tiledb::TileDBError’
what(): [TileDB::IO] Error: Cannot create directory ‘/home/tiledb/examples/cpp_api/quickstart_sparse’; File exists
Aborted

Of course the easy way around this is either to run from a different directory than the executable’s location or rename the array_name in the examples.

I was curious though if this is just an oversight in the instructions or if there was some setting to have the array directories be stored in a different location than cwd?

Thanks,
Terry


#2

Hi Terry,

This is just an oversight on our part – thanks for reporting it! I’ve opened an issue for the next patch release here: https://github.com/TileDB-Inc/TileDB/issues/1059

Tyler