Clone Tools
  • last updated 29 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
DRILL-7337: Add vararg UDFs support

    • -0
    • +325
    ./TestVarArgFunctions.java
    • -0
    • +126
    ./testing/CountArgumentsAggFunctions.java
    • -0
    • +90
    ./testing/CountArgumentsFunctions.java
    • -0
    • +65
    ./testing/InvalidVarargFunctions.java
    • -0
    • +42
    ./testing/VarArgAddFunction.java
    • -0
    • +275
    ./testing/VarCharConcatFunctions.java
  1. … 32 more files in changeset.
DRILL-7315: Revise precision and scale order in the method arguments

  1. … 27 more files in changeset.
DRILL-7310: Move schema-related classes from exec module to be able to use them in metastore module

closes #1816

  1. … 102 more files in changeset.
DRILL-7297: Query hangs in planning stage when Error is thrown

close apache/drill#1811

    • -0
    • +42
    ./testing/CustomErrorFunction.java
  1. … 2 more files in changeset.
DRILL-7253: Read Hive struct w/o nulls

  1. … 17 more files in changeset.
DRILL-7237: Fix single_value aggregate function for variable length types

- Add implementations of single_value for complex data types

closes #1782

  1. … 12 more files in changeset.
DRILL-4782 / DRILL-7139: Fix DATE_ADD and TO_TIME functions

- cast function for the day interval changed to round milliseconds to complete days

- ToDateTypeFunctions#toTime now returning milliseconds of day

- updated the way how DayInterval subtracts and adds, to follow the cast function logic

UT core updates:

- added vectorValue function to the queryBuilder to simplify retrieving value of the vector

- refactored singleton query result functions at queryBuilder

  1. … 5 more files 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. … 72 more files 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

    • -26
    • +299
    ./TestNewSimpleRepeatedFunctions.java
  1. … 8 more files in changeset.
DRILL-6967: Fix TIMESTAMPDIFF function for QUARTER qualifier

closes #1609

    • -37
    • +43
    ./TestTimestampAddDiffFunctions.java
  1. … 1 more file in changeset.
DRILL-6959: Fix loss of precision when casting time and timestamp literals in filter condition closes #1607

  1. … 1 more file in changeset.
DRILL-6962: Function coalesce returns an Error when none of the columns in coalesce exist in a parquet file

- Updated UntypedNullVector to hold value count when vector is allocated and transfered to another one;

- Updated RecordBatchLoader and DrillCursor to handle case when only UntypedNull values are present in RecordBatch (special case when data buffer is null but actual values are present);

- Added functions to cast UntypedNull value to other types for use in UDFs;

- Moved UntypedReader, UntypedHolderReaderImpl and UntypedReaderImpl from org.apache.drill.exec.vector.complex.impl to org.apache.drill.exec.vector package.

closes #1614

  1. … 16 more files in changeset.
DRILL-3610: Add TIMESTAMPADD and TIMESTAMPDIFF functions

closes #1528

    • -0
    • +202
    ./TestTimestampAddDiffFunctions.java
  1. … 6 more files in changeset.
DRILL-6810: Disable NULL_IF_NULL NullHandling for functions with ComplexWriter closes #1509

    • -0
    • +86
    ./TestParseFunctions.java
  1. … 16 more files in changeset.
DRILL-6783: CAST string literal as INTERVAL MONTH/YEAR works inconsistently when selecting from a table with multiple rows

close apache/drill#1496

  1. … 1 more file in changeset.
DRILL-6768: Improve to_date, to_time and to_timestamp and corresponding cast functions to handle empty string when option is enabled closes #1494

  1. … 23 more files in changeset.
DRILL-6684: Swap sys.options and sys.options_val tables

The current `sys.options` table has a verbose layout, because of which `sys.options_internal` was introduced. The latter also supports descriptions, which means it makes sense to have that table as the new `sys.options`.

This PR deprecates the old format, so that any dependencies continue to make use of it as long as required.

  1. … 7 more files in changeset.
DRILL-1248: Allow positional / named aliases in group by / having clauses

  1. … 3 more files in changeset.
DRILL-6710: Disallow negative scale for decimal data type

  1. … 12 more files in changeset.
DRILL-6422: Replace guava imports with shaded ones

  1. … 976 more files in changeset.
DRILL-6349: Drill JDBC driver fails on Java 1.9+ with NoClassDefFoundError: sun/misc/VM

closes #1446

  1. … 21 more files in changeset.
DRILL-6656: Disallow extra semicolons and multiple statements on the same line.

closes #1415

  1. … 143 more files in changeset.
DRILL-6634: Add udf module under contrib directory and move some udfs into it

1. Created new contrib/udf module.

2. Moved distance, phonetic, networking, crypto functions from java-exec to contrib/udf module.

3. Moved functions from gis module to contrib/udf module. Removed gis module.

4. Removed unnecessary dependencies from java-exec module.

5. Minor refactoring of moved functions code.

closes #1403

  1. … 90 more files in changeset.
DRILL-6472: Prevent using zero precision in CAST function

- Add check for the correctness of scale value;

- Add check for fitting the value to the value with the concrete scale and precision;

- Implement negative UDF for VarDecimal

- Add unit tests for new checks and UDF.

  1. … 12 more files in changeset.
DRILL-6519: Add String Distance and Phonetic Functions

closes #1331

    • -0
    • +119
    ./TestPhoneticFunctions.java
    • -0
    • +80
    ./TestStringDistanceFunctions.java
  1. … 5 more files in changeset.
DRILL-6438: Remove excess logging form the tests. - Removed usages of System.out and System.err from the test and replaced with loggers

closes #1284

  1. … 89 more files in changeset.
DRILL-5188: Expand sub-queries using rules

- Add check for agg with group by literal

- Allow NLJ for limit 1

- Implement single_value aggregate function

closes #1321

  1. … 19 more files in changeset.
DRILL-6242 Use java.time.Local{Date|Time|DateTime} for Drill Date, Time, Timestamp types. (#3)

close apache/drill#1247

* DRILL-6242 - Use java.time.Local{Date|Time|DateTime} classes to hold values from corresponding Drill date, time, and timestamp types.

Conflicts:

exec/java-exec/src/main/java/org/apache/drill/exec/vector/complex/fn/ExtendedJsonOutput.java

Fix merge conflicts and check style.

  1. … 43 more files in changeset.
DRILL-6345: DRILL Query fails on Function LOG10

- Added log10 function implementation

closes #1230

  1. … 3 more files in changeset.
DRILL-6422: Update guava to 23.0 and shade it

- Fix compilation errors for new version of Guava.

- Remove usage of deprecated API

- Shade guava and add dependencies to the shaded version

- Ban unshaded package

- Introduce drill-shaded module and move guava-shaded under it

- Add methods to convert shaded guava lists to the unshaded ones

- Add instruction for publishing artifacts to the Apache repository

  1. … 77 more files in changeset.