You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by cgivre <gi...@git.apache.org> on 2016/12/29 04:39:28 UTC

[GitHub] drill issue #708: DRILL-5152: Enhance the mock data source: better data, SQL...

Github user cgivre commented on the issue:

    https://github.com/apache/drill/pull/708
  
    HI Paul, 
    Is the mock data source actually in Drill 1.9?  I tried executing this query and it threw errors.
    Thx,
    \u2014C 
    
    > On Dec 27, 2016, at 21:54, Paul Rogers <no...@github.com> wrote:
    > 
    > Provides an enhanced version of the mock data source. See the JIRA entry for motivation, package-info.java for details of operation.
    > 
    > Allows tests to write queries of the form:
    > 
    > select id_i, name_s50 from `mock`.`employee_1K` ...
    > Where id_i is a field of random, uniformly distributed integers and name_s50 is a VARCHAR column of width 50 of randomly generated strings. The _1K suffix says to generate 1000 rows. The names are just for convenience, the suffixes tell the mock data source what to generate.
    > 
    > Examples of use will appear in a later commit that includes a revised test framework. Existing tests that use the physical plan version of the mock data source work as before.
    > 
    > You can view, comment on, or merge this pull request online at:
    > 
    >   https://github.com/apache/drill/pull/708 <https://github.com/apache/drill/pull/708>
    > Commit Summary
    > 
    > DRILL-5152: Enhance the mock data source: better data, SQL access
    > File Changes
    > 
    > M exec/java-exec/src/main/java/org/apache/drill/exec/store/AbstractRecordReader.java <https://github.com/apache/drill/pull/708/files#diff-0> (2)
    > M exec/java-exec/src/main/java/org/apache/drill/exec/store/StoragePlugin.java <https://github.com/apache/drill/pull/708/files#diff-1> (3)
    > M exec/java-exec/src/main/java/org/apache/drill/exec/store/StoragePluginRegistry.java <https://github.com/apache/drill/pull/708/files#diff-2> (2)
    > M exec/java-exec/src/main/java/org/apache/drill/exec/store/StoragePluginRegistryImpl.java <https://github.com/apache/drill/pull/708/files#diff-3> (24)
    > A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/ColumnDef.java <https://github.com/apache/drill/pull/708/files#diff-4> (178)
    > A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/DateGen.java <https://github.com/apache/drill/pull/708/files#diff-5> (53)
    > A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/DoubleGen.java <https://github.com/apache/drill/pull/708/files#diff-6> (42)
    > A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/ExtendedMockRecordReader.java <https://github.com/apache/drill/pull/708/files#diff-7> (149)
    > A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/FieldGen.java <https://github.com/apache/drill/pull/708/files#diff-8> (37)
    > A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/IntGen.java <https://github.com/apache/drill/pull/708/files#diff-9> (42)
    > M exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MockGroupScanPOP.java <https://github.com/apache/drill/pull/708/files#diff-10> (127)
    > M exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MockRecordReader.java <https://github.com/apache/drill/pull/708/files#diff-11> (8)
    > M exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MockScanBatchCreator.java <https://github.com/apache/drill/pull/708/files#diff-12> (8)
    > M exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MockStorageEngine.java <https://github.com/apache/drill/pull/708/files#diff-13> (79)
    > M exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MockStorageEngineConfig.java <https://github.com/apache/drill/pull/708/files#diff-14> (9)
    > M exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MockStorePOP.java <https://github.com/apache/drill/pull/708/files#diff-15> (3)
    > M exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MockSubScanPOP.java <https://github.com/apache/drill/pull/708/files#diff-16> (20)
    > A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/MoneyGen.java <https://github.com/apache/drill/pull/708/files#diff-17> (42)
    > A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/StringGen.java <https://github.com/apache/drill/pull/708/files#diff-18> (49)
    > A exec/java-exec/src/main/java/org/apache/drill/exec/store/mock/package-info.java <https://github.com/apache/drill/pull/708/files#diff-19> (130)
    > M exec/java-exec/src/test/java/org/apache/drill/exec/TestOpSerialization.java <https://github.com/apache/drill/pull/708/files#diff-20> (2)
    > M exec/java-exec/src/test/java/org/apache/drill/exec/fn/interp/ExpressionInterpreterTest.java <https://github.com/apache/drill/pull/708/files#diff-21> (4)
    > Patch Links:
    > 
    > https://github.com/apache/drill/pull/708.patch <https://github.com/apache/drill/pull/708.patch>
    > https://github.com/apache/drill/pull/708.diff <https://github.com/apache/drill/pull/708.diff>
    > \u2014
    > You are receiving this because you are subscribed to this thread.
    > Reply to this email directly, view it on GitHub <https://github.com/apache/drill/pull/708>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFQfviitiJqMVi2vYWaYP7mAceYPFv7Gks5rMc91gaJpZM4LWo0d>.
    > 
    



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---