fix(firestore-bigquery-export): Remove broken partition table check
This commit removes a misplaced guard found in the isTablePartitioned method of the Partitioning class. The removed conditional was erroneously checking the truthfulness of a result of a method which returns a promise, thereby always evaluating to being true. Additionally, the removed logging operation is unrelated to the purpose of the method. This errant code likely ended up here as a result of a failed merge. This addresses an issue where firestore-bigquery-export needlessly fills the logs with errors about not being able to partition an existing table even when partitioning is disabled.
The log message called upon by the removed guard is also removed as it is no longer used. It may want to be reintroduced as part of the partitioning table creation phase in a future update, but that is outside of the scope of this update.
Additional discussion found in #1368
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
Hi there @adamkeys , thanks for your contribution! Could you sign the CLA, so I can run some CI checks?
All set @cabljac
Hi @adamkeys
Are we certain this not needed. Table is optional in the partition constructor.
Is this guard not necessary to ensure that we do not attempt to partition an existing table?
I think (if it is necessary and stays) it also requires an await in the check, as discussed in the linked issue