Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Datastore Backup to BigQuery matches wrong backup name #12

Open
ronoaldo opened this issue Jun 18, 2013 · 0 comments
Open

Datastore Backup to BigQuery matches wrong backup name #12

ronoaldo opened this issue Jun 18, 2013 · 0 comments
Labels

Comments

@ronoaldo
Copy link

The query filter used to find the backup that starts with the calculated name currently will find any backup that starts with the name greather than the prefix informed in the configuration.

If there is a "production_backup", previously run by the user, and the backup prefix of the configuratoin is "bigquery", the information from "production_backup" will be used.

A potential solution is to include the line in BuiltinDatastoreToBigqueryIngesterTask.java:

q.addFilter(new FilterPredicate("name",
    FilterOperator.LESS_THAN, backupName + Character.MAX_VALUE));

This will properly perform a "starts with" query on AppEngine.

ronoaldo added a commit to ronoaldo/mache that referenced this issue Jun 18, 2013
Fixes misuse of query predicates on previous commit of
BuiltinDatastoreToBigqueryIngesterTask, that was causing it to fail
backwards.

Also adds a new test case to the test suite so this can be
verified as fixed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant