Confused about row(key).exists() #2702
Labels
api: bigtable
Issues related to the Bigtable API.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I'm confused about using the
exists()
method on arow(key)
, hoping to get clarification.If I want to check if a row exists I thought I would do this
If the row does exists then I do step into the
.then
and exists will betrue
. But if it doesn't exist I actually get an exception ofUnknown row: key
. So, then what is the point ofexists
if when it doesn't exist it throws an error? Isresult[0]
expected to always betrue
and if it doesn't exist I'm supposed to use the exception? Or am I missing something?Thanks!
The text was updated successfully, but these errors were encountered: