Paul Rogers created DRILL-7447: ---------------------------------- Summary: Simplify the Mock reader Key: DRILL-7447 URL: https://issues.apache.org/jira/browse/DRILL-7447 Project: Apache Drill Issue Type: Improvement Reporter: Paul Rogers Assignee: Paul Rogers
The mock reader is used to generate large volumes of data. It has evolved over time and has many crufty vestiges of prior implementations. Also, the Mock reader allows specifying that types are nullable, and the rate of null values. This change adds to the existing "encoding" to allow specifying this property via SQL: add an "n" to the column name to specify nullable, a number to specify percent. To specify INT columns with 10%, 50% and 90% nulls: {noformat} SELECT a_in10, b_n50, b_n90 FROM mock.dummy1000 {noformat} The default is 25% nulls (which already existed in the code) if no numeric suffix is provided. -- This message was sent by Atlassian Jira (v8.3.4#803005)