Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
DRILL-7254: Read Hive union w/o nulls

  1. … 20 more files in changeset.
DRILL-7387: Failed to get value by int key from map nested into struct

  1. … 2 more files in changeset.
DRILL-7373: Fix problems involving reading from DICT type

- Fixed FieldIdUtil to resolve reading from DICT for some complex cases;

- optimized reading from DICT given a key by passing an appropriate Object type to DictReader#find(...) and DictReader#read(...) methods when schema is known (e.g. when reading from Hive tables) instead of generating it on fly based on int or String path and key type;

- fixed error when accessing value by not existing key value in Avro table.

  1. … 10 more files in changeset.
DRILL-4517: Support reading empty Parquet files

1. Modified flat and complex parquet readers to output schema only when requested number of records to read is 0. In this case readers are not initialized to improve performance.

2. Allowed reading requested number of rows instead of all rows in the row group (DRILL-6528).

3. Fixed issue with nulls number determination in the row group (fixed IsPredicate#isAllNulls method).

4. Allowed reading empty parquet files via adding empty / fake row group.

5. General refactoring and unit tests.

6. Parquet tests categorization.

closes #1839

  1. … 48 more files in changeset.
DRILL-7337: Add vararg UDFs support

    • -14
    • +14
    ./ExpressionTreeMaterializer.java
    • -0
    • +49
    ./fn/impl/CollectToListFunction.java
    • -4
    • +12
    ./fn/interpreter/InterpreterEvaluator.java
    • -13
    • +19
    ./fn/registry/LocalFunctionRegistry.java
  1. … 26 more files in changeset.
DRILL-7317: Close ClassLoaders used for udf jars uploading when closing FunctionImplementationRegistry

- Fix issue with caching DrillMergeProjectRule and FunctionImplementationRegistry when different drillbits are started within the same JVM

    • -1
    • +2
    ./fn/FunctionImplementationRegistry.java
    • -14
    • +61
    ./fn/registry/FunctionRegistryHolder.java
    • -1
    • +6
    ./fn/registry/LocalFunctionRegistry.java
  1. … 1 more file in changeset.
DRILL-7315: Revise precision and scale order in the method arguments

    • -2
    • +2
    ./fn/interpreter/InterpreterEvaluator.java
  1. … 27 more files in changeset.
DRILL-7307: casthigh for decimal type can lead to the issues with VarDecimalHolder

- Fixed code-gen for VarDecimal type

- Fixed code-gen issue with nullable holders for simple cast functions

with passed constants as arguments.

- Code-gen now honnoring DataType.Optional type defined by UDF for

NULL-IF-NULL functions.

    • -1
    • +2
    ./fn/DrillComplexWriterAggFuncHolder.java
    • -1
    • +3
    ./fn/DrillComplexWriterFuncHolder.java
  1. … 3 more files in changeset.
DRILL-7271: Refactor Metadata interfaces and classes to contain all needed information for the File based Metastore

  1. … 116 more files in changeset.
DRILL-7253: Read Hive struct w/o nulls

    • -0
    • +57
    ./fn/impl/RowConstructorFunction.java
  1. … 17 more files in changeset.
DRILL-7228: Upgrade to a newer version of t-digest to address inaccuracies in histogram buckets. closes #1774

  1. … 3 more files in changeset.
DRILL-7098: File Metadata Metastore Plugin closes #1754

  1. … 57 more files in changeset.
DRILL-7152: During histogram creation handle the case when all values of a column are NULLs.

close apache/drill#1730

    • -128
    • +192
    ./fn/impl/TDigestFunctions.java
  1. … 1 more file in changeset.
DRILL-7143: Support default value for empty columns

Modifies the prior work to add default values for columns. The prior work added defaults

when the entire column is missing from a reader (the old Nullable Int column). The Row

Set mechanism now will also "fill empty" slots with the default value.

Added default support for the column writers. The writers automatically obtain the

default value from the column schema. The default can also be set explicitly on

the column writer.

Updated the null column mechanism to use this feature rather than the ad-hoc

implemention in the prior commit.

Semantics changed a bit. Only Required columns take a default. The default value

is ignored or nullable columns since nullable columns already have a file default: NULL.

Other changes:

* Updated the CSV-with-schema tests to illustrate the new behavior.

* Made multiple fixes for Boolean and Decimal columns and added unit tests.

* Upgraded Fremarker to version 2.3.28 to allow use of the continue statement.

* Reimplemented the Bit column reader and writer to use the BitVector directly since this vector is rather special.

* Added get/set Boolean methods for column accessors

* Moved the BooleanType class to the common package

* Added more CSV unit tests to explore decimal types, booleans, and defaults

* Add special handling for blank fields in from-string conversions

* Added options to the conversion factory to specify blank-handling behavior.

CSV uses a mapping of blanks to null (nullable) or default value (non-nullable)

closes #1726

  1. … 71 more files in changeset.
DRILL-7096: Develop vector for canonical Map<K,V>

- Added new type DICT;

- Created value vectors for the type for single and repeated modes;

- Implemented corresponding FieldReaders and FieldWriters;

- Made changes in EvaluationVisitor to be able to read values from the map by key;

- Made changes to DrillParquetGroupConverter to be able to read Parquet's MAP type;

- Added an option `store.parquet.reader.enable_map_support` to disable reading MAP type as DICT from Parquet files;

- Updated AvroRecordReader to use new DICT type for Avro's MAP;

- Added support of the new type to ParquetRecordWriter.

  1. … 106 more files in changeset.
DRILL-7089: Implement caching for TableMetadataProvider at query level and adapt statistics to use Drill metastore API

closes #1728

  1. … 49 more files in changeset.
DRILL-7011: Support schema in scan framework

* Adds schema support to the row set-based scan framework and to the "V3" text reader based on that framework.

* Adding the schema made clear that passing options as a long list of constructor arguments was not sustainable. Refactored code to use a builder pattern instead.

* Added support for default values in the "null column loader", which required adding a "setValue" method to the column accessors.

* Added unit tests for all new or changed functionality. See TestCsvWithSchema for the overall test of the entire integrated mechanism.

* Added tests for explicit projection with schema

* Better handling of date/time in column accessors

* Converted recent column metadata work from Java 8 date/time to Joda.

* Added more CSV-with-schema unit tests

* Removed the ID fields from "resolved columns", used "instanceof" instead.

* Added wildcard projection with an output schema. Handles both "lenient" and "strict" schemas.

* Tagged projection columns with their output schema, when available.

* Scan projection added modes for wildcard with an output schema. The reader projection added support for merging reader and output schemas.

* Includes refactoring of scan operator tests (the test file grew too large.)

* Renamed some classes to avoid confusing reader schemas with output schemas.

* Added unit tests for the new functionality.

* Added "lenient" wildcard with schema test for CSV

* Added more type conversions: string-to-bit, many-to-string

* Fixed bug in column writer for VarDecimal

* Added missing unit tests, and fixed bugs, in Bit column reader/writer

* Cleaned up a number of unneded "SuppressWarnings"

closes #1711

    • -2
    • +0
    ./fn/FunctionImplementationRegistry.java
  1. … 224 more files in changeset.
DRILL-7092: Rename map to struct in schema definition 1. Renamed map to struct in schema parser. 2. Updated sqlTypeOf function to return STRUCT instead of MAP, drillTypeOf function will return MAP as before until internal renaming is done. 3. Add is_struct alias to already existing is_map function. Function should be revisited once Drill supports true maps. 4. Updated unit tests.

closes #1688

  1. … 6 more files in changeset.
DRILL-6524: Assign holder fields instead of assigning object references in generated code to allow scalar replacement for more cases closes #1686

  1. … 1 more file in changeset.
DRILL-6852: Adapt current Parquet Metadata cache implementation to use Drill Metastore API

Co-authored-by: Volodymyr Vysotskyi <vvovyk@gmail.com>

Co-authored-by: Vitalii Diravka <vitalii@apache.org>

close apache/drill#1646

    • -0
    • +113
    ./BooleanPredicate.java
    • -0
    • +275
    ./ComparisonPredicate.java
    • -0
    • +28
    ./ExactStatisticsConstants.java
    • -12
    • +19
    ./ExpressionTreeMaterializer.java
    • -0
    • +338
    ./FilterBuilder.java
    • -0
    • +24
    ./FilterPredicate.java
    • -0
    • +241
    ./IsPredicate.java
    • -0
    • +336
    ./StatisticsProvider.java
    • -126
    • +0
    ./stat/ParquetBooleanPredicate.java
    • -279
    • +0
    ./stat/ParquetComparisonPredicate.java
    • -60
    • +0
    ./stat/ParquetPredicatesHelper.java
    • -0
    • +28
    ./stat/RowsMatch.java
  1. … 52 more files in changeset.
DRILL-7041: CompileException happens if a nested coalesce function returns null - Made `NullExpression`s in `IfExpression` with nested `IfExpression`s to be rewritten to typed ones recursively if necessary closes #1668

    • -21
    • +21
    ./ExpressionTreeMaterializer.java
  1. … 1 more file in changeset.
DRILL-7200: Update Calcite to 1.19.0 / 1.20.0

    • -0
    • +48
    ./fn/impl/LastDayFunction.java
  1. … 43 more files in changeset.
DRILL-7045 UDF string_binary java.lang.IndexOutOfBoundsException

UDF string_binary was not reallocating the drillbuffer so it would fill

up and throw and out of bounds exception

  1. … 1 more file in changeset.
DRILL-4858: REPEATED_COUNT on an array of maps and an array of arrays is not implemented

- Implemented 'repeated_count' function for repeated MAP and repeated LIST;

- Updated RepeatedListReader and RepeatedMapReader implementations to return correct value from size() method

- Moved repeated_count to freemarker template and added support for more repeated types for the function

closes #1641

    • -147
    • +0
    ./fn/impl/SimpleRepeatedFunctions.java
  1. … 7 more files in changeset.
DRILL-7117: Support creation of equi-depth histogram for selected data types.

Support int/bigint/float4/float8, time/timestamp/date and boolean.

Build the histogram from the t-digest byte array and serialize as JSON string.

More changes for serialization/deserialization.

Add code-gen stubs (empty) for VarChar/VarBinary types.

Address review comments (part 1). Add unit test.

Address review comments (part 2) for sampling.

close apache/drill#1715

    • -0
    • +1082
    ./fn/impl/TDigestFunctions.java
  1. … 15 more files in changeset.
DRILL-7046: Support for loading and parsing new RM config file closes #1652

    • -3
    • +3
    ./fn/FunctionImplementationRegistry.java
  1. … 63 more files in changeset.
DRILL-6533: Allow using literal values in functions which expect FieldReader instead of ValueHolder

closes #1617

    • -14
    • +36
    ./fn/interpreter/InterpreterEvaluator.java
  1. … 2 more files in changeset.
DRILL-6744: Support varchar and decimal push down

1. Added enableStringsSignedMinMax parquet format plugin config and store.parquet.reader.strings_signed_min_max session option to control reading binary statistics for files generated by prior versions of Parquet 1.10.0.

2. Added ParquetReaderConfig to store configuration needed during reading parquet statistics or files.

3. Provided mechanism to enable varchar / decimal filter push down.

4. Added VersionUtil to compare Drill versions in string representation.

5. Added appropriate unit tests.

closes #1537

    • -3
    • +56
    ./stat/ParquetComparisonPredicate.java
  1. … 40 more files in changeset.
DRILL-6868: Upgrade Janino compiler to 3.0.11

- Remove workaround where removing adjacent ALOAD-POP instruction pairs

- Remove ModifiedUnparser and use DeepCopier for modifying methods instead of modifying it with custom Unparser implementation

closes #1553

  1. … 3 more files in changeset.
DRILL-6810: Disable NULL_IF_NULL NullHandling for functions with ComplexWriter closes #1509

    • -0
    • +10
    ./fn/DrillComplexWriterFuncHolder.java
    • -34
    • +134
    ./fn/impl/ParseQueryFunction.java
    • -107
    • +145
    ./fn/impl/ParseUrlFunction.java
    • -12
    • +85
    ./fn/impl/conv/JsonConvertFrom.java
  1. … 4 more files in changeset.