Граф коммитов

168 Коммитов

Автор SHA1 Сообщение Дата
Sugu Sougoumarane 1f2a7bf671 parser: Improve grammar on tuple handling 2014-06-23 06:22:44 -07:00
Sugu Sougoumarane 1a7b9a3519 parser: table_expression -> TableExpr 2014-06-18 06:56:37 -07:00
Sugu Sougoumarane efe1f17345 parser: bug fix: handle insert row subquery
execution planner did not take into account that a value list
for insert could be a row subquery.
2014-06-18 01:53:36 -07:00
Sugu Sougoumarane 4194f97274 parser: Fix bug in parenthesized table_expression 2014-06-17 06:06:17 -07:00
Alain Jobart a56cf5bdd5 Fixing a corner case in cgzip decoder.
That was discovered with go 1.3. It is legal for a Reader
to return both data (n>0) and io.EOF. If the returned data
doesn't fit in one output buffer, we'd hit this corner case.
2014-06-03 16:17:19 -07:00
Sugu Sougoumarane 3b64943e8c parser: bug fix for union of union 2014-05-27 00:08:38 -07:00
Sugu Sougoumarane eff8dd360e parser ast revamp: WIP
This CL changes the top level statement nodes to
actualy Statement types, and the rest of the callers
are changed to use the new types.
2014-05-26 22:31:12 -07:00
Alain Jobart 1664027296 Moving blp_checkpoint table creation to the MultiRestore code. 2014-05-09 15:07:38 -07:00
Sugu Sougoumarane 6db93e8d77 parser: stream plan & parsed_query tests
Coverage is at 94%. All required code paths
are now fully covered in sqlparser.
2014-05-06 22:02:02 -07:00
Sugu Sougoumarane 8e6329c31c parser: add missing test file for tokenizer 2014-05-06 18:02:49 -07:00
Sugu Sougoumarane d76507802a parser: failure cases for tokenizer (WIP) 2014-05-06 18:02:03 -07:00
Sugu Sougoumarane 2b02a3b0ed parser: tokenizer tests and a bug fix 2014-05-06 17:16:46 -07:00
Sugu Sougoumarane 9e86c50b02 parser: improved tests & error messages (WIP) 2014-05-06 16:00:43 -07:00
Sugu Sougoumarane 198f1d08db bsongen test: negattive & other misc tests 2014-04-29 10:04:44 -07:00
Sugu Sougoumarane 83d18b7a68 bsongen test: simple top-level type 2014-04-29 00:28:27 -07:00
Sugu Sougoumarane cc8e802140 bsongen: basic tests 2014-04-28 23:31:38 -07:00
Sugu Sougoumarane 8a3b994765 parser: support if exists for drop view 2014-04-25 00:30:01 -07:00
Sugu Sougoumarane 4b736e9c32 rudimentary support for VIEW ddls 2014-04-21 15:25:56 -07:00
Alain Jobart 41abf265b2 Merge branch 'master' into replication 2014-04-11 15:30:54 -07:00
Alain Jobart 9e2a56955c Renaming vt/topotools to vt/topo/helpers. 2014-04-11 14:34:30 -07:00
Sugu Sougoumarane d98ac3213c queryservice: support qualified column names for update statements 2014-04-08 14:40:01 -07:00
Sugu Sougoumarane 8d91aa4802 queryservice: lip service to positional args
First cut at supporting positional args. This allows
you to send queries like:
select * from t where id1 = ? and id2 = ?
The parser will treat this query as:
select * from t where id1 = :v1 and id2 = :v2
So, the bind variables will need to be like this:
{"id1": 1, "id2": 2}
2014-04-05 08:36:09 -07:00
Sugu Sougoumarane a643e95635 queryservice: qualified column names in insert 2014-03-29 00:41:41 -07:00
Sugu Sougoumarane d257db8e42 queryservice: support lock in share mode construct 2014-03-28 23:55:48 -07:00
Sugu Sougoumarane cfdf27d3bb bsongen: non-struct simple types 2014-03-25 01:12:04 -07:00
Sugu Sougoumarane 3ee1262291 bsongen: support for custom tags 2014-03-23 22:11:09 -07:00
Sugu Sougoumarane df9479e14a bsongen: non-string maps & vt/topo structs 2014-03-23 02:15:16 -07:00
Sugu Sougoumarane 90d3ae1c92 bsongen: fix imports 2014-03-20 00:35:43 -07:00
Sugu Sougoumarane c62f64b3cb Merge branch 'master' into bson 2014-03-19 21:53:42 -07:00
Sugu Sougoumarane 2b869a792c sqlparser: handle case sensitivity
https://dev.mysql.com/doc/refman/5.1/en/identifier-case-sensitivity.html
Case sensitivity depends on the context: columns, indexes
and aliases are not case sensitive, but table names and table
aliases are.
2014-03-18 20:39:24 -07:00
Sugu Sougoumarane 71b558f299 bsongen: more tweaks 2014-03-15 23:44:52 -07:00
Sugu Sougoumarane 73cf959b96 bsongen: handle nesting with unique var names 2014-03-15 22:21:01 -07:00
Sugu Sougoumarane 1d04d9989d bsongen: Add pipe through goimports 2014-03-13 21:10:11 -07:00
Sugu Sougoumarane e640c368f0 bsongen: Custom types 2014-03-13 00:26:51 -07:00
Sugu Sougoumarane ecc2235439 bsongen: time.Time support 2014-03-12 23:48:33 -07:00
Sugu Sougoumarane f75fbdebc7 bsongen: Interface support 2014-03-12 14:10:46 -07:00
Sugu Sougoumarane 8f3dbd8a7e queryservice: sensitive mode: alternate approach
The previous approach is causing too many random changes
in the code. The new approach of deciding what the display
query should be upfront should lead to a more robust scheme.
2014-03-06 22:15:45 -08:00
Sugu Sougoumarane db3548281e queryservice: sensitive mode: query plan change
query service is going to support sensitive mode where
it will suppress potentially sensitive info when displaying
diagnostics data.
This CL adds a new field to ExecPlan: AnonymizedQuery.
It's an anonymized version of the original query.
2014-03-06 18:51:00 -08:00
Sugu Sougoumarane 0ba8f4fe2a bsongen: Map support 2014-02-26 19:23:28 -08:00
Sugu Sougoumarane b4999d05ac bsongen: Slice support
Also changed ExpectIndex to SkipIndex. The check
is not worth it.
2014-02-26 15:09:30 -08:00
Sugu Sougoumarane 000b0a90ff bsongen: Pointer support
Code gen is slightly ugly, but it does the right thing.
2014-02-25 15:33:19 -08:00
Sugu Sougoumarane faed110d1c bsongen: []byte support 2014-02-24 16:56:13 -08:00
Sugu Sougoumarane ac5058a441 bsongen: basic types support 2014-02-23 18:31:09 -08:00
Sugu Sougoumarane 3ddc9e4025 bsongen stub: Humble beginnings 2014-02-22 21:20:43 -08:00
Sugu Sougoumarane 164c1892bb Categorize upserts as PASS_DML
Upserts are not safe for statement based replication:
http://bugs.mysql.com/bug.php?id=58637
So, vttablet now categorizes it as pass-though DML,
which will eventually get rejected because of
update stream & rowcache.
In the future, we can allow a 'dumb mode' where
PASS_DML plans are allowed if people don't care
about rowcache or update stream.
2014-02-19 14:09:45 -08:00
Sugu Sougoumarane 959c21ec7d Allow cross-db DMLs in the parser.
Changed parser to allow cross-db DMLs like:
UPDATE a.b...
These constructs will always become PASS_DML plans, which
will eventually be blocked on execution to protect update stream.
We need to allow the syntax to make sure that the rowcache invalidator
can parse and ignore such spurious DMLs introduced by
a non-vttablet process, but which don't affect rowcache.
2014-02-08 19:16:23 -08:00
Alain Jobart a98ad0dee8 Fixing CSV format for hex. 2014-01-09 10:27:50 -08:00
Alain Jobart d585cee219 Supporting hex in csvsplitter. 2014-01-09 09:30:40 -08:00
Alain Jobart a272a5b993 Group id is now always an int64. 2013-12-18 09:43:13 -08:00
Alain Jobart b4109c0929 Another set of moves. 2013-12-02 20:12:26 -08:00
Alain Jobart f0a92b8f82 Moving another config file over. 2013-12-02 20:03:31 -08:00
Alain Jobart 1179a616c8 Moving one more test file over. 2013-12-02 20:01:30 -08:00
Alain Jobart b4ff53f108 Moving test files from this too. 2013-12-02 19:58:33 -08:00
Alain Jobart 6d414ac92d Move test files to common location. 2013-12-02 19:53:16 -08:00
Sugu Sougoumarane b01386add9 Standardize GroupId type and usage 2013-11-26 10:23:04 -08:00
Alain Jobart 168c023409 Fixing permissions in tests.
The 'app' user should be vt_app. It didn't work before, as some
tests expected to be able to drop tables, and that wasn't allowed.
So I changed the permissions so vt_app can drop tables, and use
the user for the tests. It's just not SUPER.
2013-08-22 21:55:02 -07:00
Alain Jobart e474bd5caf Now correctly waiting for EOF's GroupId.
When binlog_player reaches EOF, and we have nothing left to commit,
we now save the groupId we were on. So we can know if we're caught up.
2013-08-19 16:58:16 -07:00
Alain Jobart b8d774655f Restoring the uid as a unique id for resharding.
It is used as a unique id for a SourceShard, as well
as the primary key on _vt.blp_recovery.
2013-08-19 10:21:36 -07:00
Alain Jobart de7944ec85 Combining host+port into addr in blp_checkpoint.
They were only used together anyway.
2013-08-05 21:29:20 -07:00
Alain Jobart 322f9e3922 Changing _vt.blp_checkpoint to not have uid.
Now the primary key is keyspace_start, keyspace_end.
Also simplifying vt_binlog_player to get ready to move
it to mysqlctl.
2013-08-02 17:13:19 -07:00
Alain Jobart 3e5984d9de blp_checkpoint has no relay positions any more.
Also removing useCheckpoint flag in vt_binlog_player, it always does now.
2013-08-01 13:58:20 -07:00
Alain Jobart 715699e32b Changing group_id to string in these files. 2013-08-01 13:44:38 -07:00
Shruti Patil 202352622d schema change in blp_checkpoint and tracking group_id. 2013-05-17 13:51:08 -07:00
Alain Jobart ae74ea4b94 Renaming vt_blp_recovery to blp_checkpoint. 2013-04-23 11:32:12 -07:00
Alain Jobart 5d6cc70cba Adding masterpos to multisnapshot manifest, populate vt_blp_recovery with it.
LGTM Shruti.
2013-04-22 16:05:07 -07:00
Mike Solomon 3fea3177ef support reparenting a single tablet to the last known coordinates tracked in _vt.reparent_log 2012-11-07 01:08:01 -08:00
Mike Solomon 8c9c4f5ae5 add _vt.reparent_log to handle reparent tracking per shard
consolidate some old tables for replication
2012-10-30 23:49:00 -07:00
Mike Solomon 9af4296602 add mysql bootstrap data 2012-07-24 01:17:54 -07:00