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

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

  1. … 16 more files in changeset.
DRILL-6084: Show Drill functions in WebUI for autocomplete

Building on top of DRILL-3988 and leveraging DRILL-5868, this allows support for Drill functions to be now available in the WebUI.

If users wants UDFs to show up, they should place the UDF jars in the `$DRILL_HOME/jars/3rdparty` directory so that this can be loaded during the Drillbit's startup.

Concept of internal Drill functions are introduced. With this, internal Drill functions like `ConvertToNullableXYZ` has been marked as internal.

The WebUI will not show these functions. However, they are still visible in `sys.functions` table with an additional column indicating that it is an internal function.

Tests have been added as a part of this commit to verify the internal functions concept.

  1. … 13 more files in changeset.
DRILL-6320: Fixed license headers.

closes #1207

  1. … 2064 more files in changeset.
DRILL-6094: Decimal data type enhancements

Add ExprVisitors for VARDECIMAL

Modify writers/readers to support VARDECIMAL

- Added usage of VarDecimal for parquet, hive, maprdb, jdbc;

- Added options to store decimals as int32 and int64 or fixed_len_byte_array or binary;

Add UDFs for VARDECIMAL data type

- modify type inference rules

- remove UDFs for obsolete DECIMAL types

Enable DECIMAL data type by default

Add unit tests for DECIMAL data type

Fix mapping for NLJ when literal with non-primitive type is used in join conditions

Refresh protobuf C++ source files

Changes in C++ files

Add support for decimal logical type in Avro.

Add support for date, time and timestamp logical types.

Update Avro version to 1.8.2.

  1. … 201 more files in changeset.
DRILL-6340 Output Batch Control in Project using the RecordBatchSizer

Changes required to implement Output Batch Sizing in Project using the RecordBatchSizer.

closes #1302

  1. … 56 more files in changeset.
DRILL-5419: Calculate return string length for literals & some string functions

1. Revisited calculation logic for string literals and some string functions

(cast, upper, lower, initcap, reverse, concat, concat operator, rpad, lpad, case statement,

coalesce, first_value, last_value, lag, lead).

Synchronized return type length calculation logic between limit 0 and regular queries.

2. Deprecated width and changed it to precision for string types in MajorType.

3. Revisited FunctionScope and splitted it into FunctionScope and ReturnType.

FunctionScope will indicate only function usage in term of number of in / out rows, (n -> 1, 1 -> 1, 1->n).

New annotation in UDFs ReturnType will indicate which return type strategy should be used.

4. Changed MAX_VARCHAR_LENGTH from 65536 to 65535.

5. Updated calculation of precision and display size for INTERVALYEAR & INTERVALDAY.

6. Refactored part of function code-gen logic (ValueReference, WorkspaceReference, FunctionAttributes, DrillFuncHolder).

This closes #819

  1. … 78 more files in changeset.
DRILL-5043: Function that returns a unique id per session/connection similar to MySQL's CONNECTION_ID() #685

  1. … 27 more files in changeset.
DRILL-4499: Remove 16 unused classes

This closes #426

  1. … 15 more files in changeset.
DRILL-3742: Classpath scanning and build improvement

Makes the classpath scanning a build time class discovery

Makes the fmpp generation incremental

Removes some slowness in DrillBit closing

Reduces the build time by 30%

This closes #148

  1. … 143 more files in changeset.
DRILL-1062: Implemented null ordering (NULLS FIRST/NULLS LAST).

Primary:

- Split "compare_to" function templates (for sorting) into

"compare_to_nulls_high" and "compare_to_nulls_low" versions.

- Added tests to verify ORDER BY ordering.

- Added tests to verify merge join order correctness.

- Implemented java.sql.DatabaseMetaData.nullsAreSortedHigh(), etc.

Secondary:

- Eliminated DateInterfaceFunctions.java template (merged into other).

- Renamed comparison-related template data objects and file names.

- Eliminated unused template macros, function template classes.

- Overhauled Order.Ordering; added unit test.

- Regularized some generated-class names.

Miscellaneous:

- Added toString() to ExpressionPosition, Order.Ordering, JoinStatus.

- Fixed some typos.

- Fixed some comment syntax.

  1. … 50 more files in changeset.
DRILL-2400: Part 2: Add merge filter rule to logical rule sets. Increase function cost differentials.

  1. … 2 more files in changeset.
DRILL-634: Cleanup/organize Java imports and trailing whitespaces from Drill code

  1. … 767 more files in changeset.
DRILL-1110: Output precision of functions should always be greater or equal to input precision

  1. … 5 more files in changeset.
DRILL-861: Implement sum, avg for decimal data type.

  1. … 9 more files in changeset.
DRILL-794: Fix IOB while performing decimal subtraction

  1. … 9 more files in changeset.
DRILL-1044: Optimize boolean and/or operators by short-circuit and fast-success / fast-fail approach.

  1. … 40 more files in changeset.
DRILL-937: Optimize boolean and/or operator with short circuit evaluation in run-time generated code.

  1. … 5 more files in changeset.
DRILL-619: Implement Decimal functions abs ceil floor round truncate divide modulo Fix resolver type precedence Fix bug in multiplication of large decimals Add tests

Added following misc functions

concat

length

to_char

to_number

Aggregate functions for decimal

  1. … 23 more files in changeset.
DRILL-332: Support for decimal data type

  1. … 62 more files in changeset.
DRILL-387: Support using Hive simple UDFs in Drill * As part of this change FunctionDefinition (and related code) * are deleted, instead the same information available in * Function Holders are used whenever required * Freemarker/CodeModel codegen for Drill ObjectInspectors * Comparator function cleanup

  1. … 85 more files in changeset.
DRILL-346: Move constant expressions to setup.

  1. … 18 more files in changeset.
DRILL-221 Add license header to all files

  1. … 825 more files in changeset.
DRILL-165: Reorganize directories (moves only)

    • -0
    • +25
    ./FunctionTemplate.java
  1. … 1735 more files in changeset.