Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MYR-151 : json data type overwrites data in table on insert #1912

Merged
merged 1 commit into from
Aug 31, 2017

Conversation

george-lorch
Copy link
Contributor

MYR-152 : the json binary value contains invalid data

  • MyRocks was entirely missing JSON support, which seems to be to just treat,
    parck, and unpack MYSQL_TYPE_JSON exacely like MYSQL_TYPE_BLOB.
  • Added changes to support JSON types.
  • Added new test that includes some tests from mysql-test/suite/json/include
    and also does some basic JSON store/retrieve.

@george-lorch
Copy link
Contributor Author

george-lorch commented Aug 30, 2017

The json test feels quite hackish but I could not find any other decent example, so I included some of the appropriate tests from mysql-test/suite/json/inc and appended the test cases that Tomislav was using. Incidentally, there is absolutely no TokuDB test for JSON in 5.7 at all.

http://jenkins.percona.com/view/5.7/job/mysql-5.7-param/1182/

Copy link
Contributor

@laurynas-biveinis laurynas-biveinis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK with typo fixed. Please see that docs mark JSON support as Beta or similar even when the rest of MyRocks is GA

@@ -0,0 +1,21 @@
--source include/have_rocksdb.inc

# needed by theses json .inc tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"theses"

@george-lorch
Copy link
Contributor Author

Actually that is a good point re: beta JSON. I did ask Tomislav to test JSON pretty thoroughly but this really is probably worth creating an RQA task to 'clear' it before we call it a GA feature.

MYR-152 : the json binary value contains invalid data
- MyRocks was entirely missing JSON support, which seems to be to just treat,
  parck, and unpack MYSQL_TYPE_JSON exacely like MYSQL_TYPE_BLOB.
- Added changes to support JSON types.
- Added new test that includes some tests from mysql-test/suite/json/include
  and also does some basic JSON store/retrieve.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants