[GitHub] drill pull request #696: DRILL-4558: BSonReader should prepare buffer size a...

2017-01-13 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/drill/pull/696


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] drill pull request #696: DRILL-4558: BSonReader should prepare buffer size a...

2017-01-13 Thread paul-rogers
Github user paul-rogers commented on a diff in the pull request:

https://github.com/apache/drill/pull/696#discussion_r96048977
  
--- Diff: 
exec/java-exec/src/test/java/org/apache/drill/exec/store/bson/TestBsonRecordReader.java
 ---
@@ -103,6 +103,17 @@ public void testStringType() throws IOException {
   }
 
   @Test
+  public void testSpecialCharStringType() throws IOException {
+BsonDocument bsonDoc = new BsonDocument();
+bsonDoc.append("stringKey", new BsonString("§§§§§§§§§1"));
--- End diff --

Might want to put your value in a string, convert to byte but, and assert 
that the byte buf length differs in length from the string length. This will 
verify that this test is, in fact, testing the problem case.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] drill pull request #696: DRILL-4558: BSonReader should prepare buffer size a...

2016-12-13 Thread chunhui-shi
GitHub user chunhui-shi opened a pull request:

https://github.com/apache/drill/pull/696

DRILL-4558: BSonReader should prepare buffer size as actual need



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/chunhui-shi/drill DRILL-4558

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/drill/pull/696.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #696


commit fc0b7478efef1447ccca8965c8da001a04f243d4
Author: chunhui-shi 
Date:   2016-12-14T02:00:49Z

DRILL-4558: BSonReader should prepare buffer size as actual need




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---