This function is only applicable to ‘WRITE’ queries.
tiledb_query_get_fragment_num(query)
query
A TileDB Query object
An integer with the number of fragments for the given query