[GitHub] drill pull request #1242: DRILL-6361: Revised typeOf() function versions

2018-05-02 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1242#discussion_r185458392 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/expr/fn/impl/TestTypeFns.java --- @@ -0,0 +1,196 @@ +/* + * Licensed to the Apache

[GitHub] drill pull request #1242: DRILL-6361: Revised typeOf() function versions

2018-05-02 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1242#discussion_r185435469 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/UnionFunctions.java --- @@ -146,16 +139,131 @@ private static int getTypeValue

[GitHub] drill issue #1224: DRILL-6321: Customize Drill's conformance. Allow support ...

2018-05-02 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1224 @parthchandra, thanks for the explanation. @chunhui-shi, thanks for making changes, +1 ---

[GitHub] drill issue #1224: DRILL-6321: Customize Drill's conformance. Allow support ...

2018-04-29 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1224 As I understand from DRILL-1921, cross join was prevented due to the `CannotPlanException` exception at the planning stage. Can we get the same problem using `APPLY`? If yes, should

[GitHub] drill pull request #1230: DRILL-6345: DRILL Query fails on Function LOG10

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1230#discussion_r184144882 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestNewMathFunctions.java --- @@ -132,4 +148,200 @@ public void testIsNumeric

[GitHub] drill pull request #1230: DRILL-6345: DRILL Query fails on Function LOG10

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1230#discussion_r184106411 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestNewMathFunctions.java --- @@ -132,4 +148,200 @@ public void testIsNumeric

[GitHub] drill pull request #1230: DRILL-6345: DRILL Query fails on Function LOG10

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1230#discussion_r184110535 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestNewMathFunctions.java --- @@ -132,4 +148,200 @@ public void testIsNumeric

[GitHub] drill pull request #1230: DRILL-6345: DRILL Query fails on Function LOG10

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1230#discussion_r184138785 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestNewMathFunctions.java --- @@ -132,4 +148,200 @@ public void testIsNumeric

[GitHub] drill pull request #1230: DRILL-6345: DRILL Query fails on Function LOG10

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1230#discussion_r184145427 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestNewMathFunctions.java --- @@ -20,12 +20,20 @@ import static

[GitHub] drill pull request #1230: DRILL-6345: DRILL Query fails on Function LOG10

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1230#discussion_r184107121 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestNewMathFunctions.java --- @@ -132,4 +148,200 @@ public void testIsNumeric

[GitHub] drill pull request #1230: DRILL-6345: DRILL Query fails on Function LOG10

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1230#discussion_r184138601 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestNewMathFunctions.java --- @@ -132,4 +148,200 @@ public void testIsNumeric

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184062425 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/columnreaders/ParquetFixedWidthDictionaryReaders.java --- @@ -248,27 +227,61

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184004929 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/ScanBatch.java --- @@ -409,7 +409,7 @@ public void clear

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184035111 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestVarDecimalFunctions.java --- @@ -0,0 +1,911 @@ +/* + * Licensed

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184099659 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/SqlConverter.java --- @@ -559,6 +560,19 @@ public RexNode makeCast(RelDataType

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184061116 --- Diff: exec/java-exec/src/test/java/org/apache/drill/PlanningBase.java --- @@ -20,12 +20,17 @@ import java.io.IOException; import

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184012035 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/join/TestNestedLoopJoin.java --- @@ -409,4 +409,30 @@ public void

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184008307 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/ParquetRecordWriter.java --- @@ -228,14 +232,33 @@ private void newSchema

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184008988 --- Diff: exec/vector/src/main/codegen/templates/NullReader.java --- @@ -31,19 +31,19 @@ * This class is generated using freemarker

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184065631 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/window/FrameSupportTemplate.java --- @@ -300,7 +300,7 @@ public void cleanup

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184027803 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/common/DrillValuesRelBase.java --- @@ -169,12 +168,12 @@ private static void

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184035055 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestVarDecimalFunctions.java --- @@ -0,0 +1,911 @@ +/* + * Licensed

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184051298 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/store/parquet/TestFixedlenDecimal.java --- @@ -20,61 +20,74 @@ import

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184002128 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/output/DecimalReturnTypeInference.java --- @@ -281,20 +295,45 @@ @Override

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184007677 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/Hash64WithSeedAsDouble.java --- @@ -265,6 +268,42 @@ public void eval

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184002812 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/expr/stat/RangeExprEvaluator.java --- @@ -219,6 +219,7 @@ private Statistics evalCastFunc

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184008881 --- Diff: exec/vector/src/main/codegen/templates/AbstractPromotableFieldWriter.java --- @@ -75,12 +75,19 @@ public void endList() { <#l

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184028590 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/TypeInferenceUtils.java --- @@ -668,46 +706,95 @@ public RelDataType

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184010194 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/store/parquet/TestVarlenDecimal.java --- @@ -0,0 +1,153 @@ +/* + * Licensed

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184031285 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/TypeInferenceUtils.java --- @@ -382,13 +407,26 @@ public RelDataType

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r183998600 --- Diff: contrib/storage-jdbc/src/main/java/org/apache/drill/exec/store/jdbc/JdbcRecordReader.java --- @@ -225,10 +247,10 @@ public int next

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1232#discussion_r184008595 --- Diff: exec/vector/src/main/codegen/templates/AbstractFieldReader.java --- @@ -29,9 +29,9 @@ * This class is generated using freemarker

[GitHub] drill pull request #1230: DRILL-6345: DRILL Query fails on Function LOG10

2018-04-20 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1230#discussion_r183097515 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestNewMathFunctions.java --- @@ -116,8 +115,7 @@ public void testTrigoMathFunc

[GitHub] drill issue #1232: DRILL-6094: Decimal data type enhancements

2018-04-20 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1232 @arina-ielchiieva, @parthchandra could you please take a look at this? ---

[GitHub] drill pull request #1232: DRILL-6094: Decimal data type enhancements

2018-04-20 Thread vvysotskyi
GitHub user vvysotskyi opened a pull request: https://github.com/apache/drill/pull/1232 DRILL-6094: Decimal data type enhancements For details please see [design document](https://docs.google.com/document/d/1kfWUZ_OsEmLOJu_tKZO0-ZUJwc52drrm15fyif7BmzQ/edit?usp=sharing) You can

[GitHub] drill issue #1198: DRILL-6294: Changes to support Calcite 1.16.0

2018-04-03 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1198 @chunhui-shi, I have addressed all CR comments, could you please take a look again? ---

[GitHub] drill pull request #1198: DRILL-6294: Changes to support Calcite 1.16.0

2018-03-30 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1198#discussion_r178404654 --- Diff: exec/jdbc/src/main/java/org/apache/drill/jdbc/impl/DrillResultSetImpl.java --- @@ -1142,16 +1142,8 @@ public void moveToCurrentRow() throws

[GitHub] drill pull request #1198: DRILL-6294: Changes to support Calcite 1.16.0

2018-03-30 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1198#discussion_r178371341 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/logical/DrillReduceAggregatesRule.java --- @@ -218,7 +218,8 @@ private void

[GitHub] drill issue #1198: DRILL-6294: Changes to support Calcite 1.16.0

2018-03-30 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1198 @amansinha100, @chunhui-shi could you please take a look? ---

[GitHub] drill pull request #1198: DRILL-6294: Changes to support Calcite 1.16.0

2018-03-30 Thread vvysotskyi
GitHub user vvysotskyi opened a pull request: https://github.com/apache/drill/pull/1198 DRILL-6294: Changes to support Calcite 1.16.0 You can merge this pull request into a Git repository by running: $ git pull https://github.com/vvysotskyi/drill DRILL-6294 Alternatively you

[GitHub] drill pull request #1194: DRILL-6300: Refresh protobuf C++ source files

2018-03-29 Thread vvysotskyi
GitHub user vvysotskyi opened a pull request: https://github.com/apache/drill/pull/1194 DRILL-6300: Refresh protobuf C++ source files You can merge this pull request into a Git repository by running: $ git pull https://github.com/vvysotskyi/drill DRILL-6300 Alternatively you

[GitHub] drill pull request #1178: DRILL-6278: Removed temp codegen directory in test...

2018-03-25 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1178#discussion_r176936575 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/TopN/TopNBatchTest.java --- @@ -159,7 +157,6 @@ public void

[GitHub] drill issue #1178: DRILL-6278: Removed temp codegen directory in testing fra...

2018-03-21 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1178 @ilooner, I have noticed that `ClassBuilder.CODE_DIR_OPTION` is used in `TopNBatchTest` class. Shoul we also remove it? ---

[GitHub] drill issue #1168: DRILL-6246: Reduced the size of the jdbc-all jar file

2018-03-16 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1168 Classes from `avatica.metrics` are used in `JsonHandler`, `ProtobufHandler` and `LocalService`. If Drill does not use these classes than I agree that we can exclude it from `jdbc-all` jar

[GitHub] drill issue #1104: DRILL-6118: Handle item star columns during project / fil...

2018-03-07 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1104 @paul-rogers, as you know, there were some differences between the commits in the older Calcite version (1.4.0-r23) which was used by Drill and commits merged into Apache master. One

[GitHub] drill pull request #1138: DRILL-4120: Allow implicit columns for Avro storag...

2018-03-06 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1138#discussion_r172618093 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/types/ExtendableRelDataTypeHolder.java --- @@ -0,0 +1,82

[GitHub] drill pull request #1138: DRILL-4120: Allow implicit columns for Avro storag...

2018-03-06 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1138#discussion_r172630422 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/SqlConverter.java --- @@ -277,6 +279,25 @@ public String deriveAlias

[GitHub] drill pull request #1138: DRILL-4120: Allow implicit columns for Avro storag...

2018-03-06 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1138#discussion_r172620291 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/store/avro/AvroDrillTable.java --- @@ -58,16 +65,31 @@ public AvroDrillTable(String

[GitHub] drill pull request #1138: DRILL-4120: Allow implicit columns for Avro storag...

2018-03-06 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1138#discussion_r172618262 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/store/ColumnExplorer.java --- @@ -78,6 +79,23 @@ public ColumnExplorer(OptionManager

[GitHub] drill issue #1138: DRILL-4120: Allow implicit columns for Avro storage forma...

2018-03-06 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1138 @arina-ielchiieva, @paul-rogers, I have reworked this pull request to use `AvroDrillTable`, as it was before my changes. Also, with `AvroDrillTable` there is no need to make changes

[GitHub] drill issue #1138: DRILL-4120: Allow implicit columns for Avro storage forma...

2018-03-01 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1138 @paul-rogers, schema is taken from the first file in the `FormatSelection`. Therefore for the case, when we have a table with several files with a different scheme, Drill query will fail

[GitHub] drill pull request #1142: DRILL-6198: OpenTSDB unit tests fail when Lilith c...

2018-03-01 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1142#discussion_r171620225 --- Diff: contrib/storage-opentsdb/src/test/java/org/apache/drill/store/openTSDB/TestOpenTSDBPlugin.java --- @@ -185,4 +188,26 @@ public void

[GitHub] drill pull request #1142: DRILL-6198: OpenTSDB unit tests fail when Lilith c...

2018-03-01 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1142#discussion_r171617811 --- Diff: contrib/storage-opentsdb/src/test/java/org/apache/drill/store/openTSDB/TestOpenTSDBPlugin.java --- @@ -51,17 +54,17 @@ public class

[GitHub] drill pull request #1142: DRILL-6198: OpenTSDB unit tests fail when Lilith c...

2018-03-01 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1142#discussion_r171618633 --- Diff: contrib/storage-opentsdb/src/test/java/org/apache/drill/store/openTSDB/TestOpenTSDBPlugin.java --- @@ -51,17 +54,17 @@ public class

[GitHub] drill pull request #1142: DRILL-6198: OpenTSDB unit tests fail when Lilith c...

2018-03-01 Thread vvysotskyi
GitHub user vvysotskyi opened a pull request: https://github.com/apache/drill/pull/1142 DRILL-6198: OpenTSDB unit tests fail when Lilith client is run Added method which checks that the default port 10_000 is free, otherwise this method increases port number and checks until free

[GitHub] drill pull request #1138: DRILL-4120: Allow implicit columns for Avro storag...

2018-03-01 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1138#discussion_r171544478 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/store/avro/AvroFormatTest.java --- @@ -170,25 +169,35 @@ public void

[GitHub] drill pull request #1138: DRILL-4120: Allow implicit columns for Avro storag...

2018-02-28 Thread vvysotskyi
GitHub user vvysotskyi opened a pull request: https://github.com/apache/drill/pull/1138 DRILL-4120: Allow implicit columns for Avro storage format Existing implementation of `AvroDrillTabl` does not allow dynamic columns discovering. `AvroDrillTable.getRowType()` method returns

[GitHub] drill pull request #1104: DRILL-6118: Handle item star columns during projec...

2018-02-06 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1104#discussion_r166310161 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/project/ProjectRecordBatch.java --- @@ -596,10 +596,10 @@ private void

[GitHub] drill issue #1066: DRILL-3993: Changes to support Calcite 1.15

2018-01-18 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1066 FYI: changes in pom files: We observed issue with Avatica similar to the issue described in https://issues.apache.org/jira/browse/CALCITE-1694. Therefore we had to make changes in our pom

[GitHub] drill issue #1066: DRILL-3993: Changes to support Calcite 1.15

2018-01-18 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1066 @amansinha100, regarding HashAggregate OOM related change, it was done in the scope of this pull request since with new Calcite a physical plan for the query was changed to the correct one

[GitHub] drill pull request #1066: DRILL-3993: Changes to support Calcite 1.15

2018-01-17 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1066#discussion_r162157833 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/DrillRelBuilder.java --- @@ -0,0 +1,69 @@ +/* + * Licensed to the Apache

[GitHub] drill pull request #1066: DRILL-3993: Changes to support Calcite 1.15

2018-01-17 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1066#discussion_r162161040 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/DrillRelBuilder.java --- @@ -0,0 +1,69 @@ +/* + * Licensed to the Apache

[GitHub] drill pull request #1066: DRILL-3993: Changes to support Calcite 1.15

2018-01-16 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1066#discussion_r161796052 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/aggregate/HashAggTemplate.java --- @@ -1303,6 +1305,8 @@ private void

[GitHub] drill pull request #1066: DRILL-3993: Changes to support Calcite 1.15

2018-01-12 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1066#discussion_r161185413 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/AggPruleBase.java --- @@ -82,4 +83,19 @@ protected boolean

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-11 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r161015751 --- Diff: exec/vector/src/main/codegen/templates/VariableLengthVectors.java --- @@ -418,6 +422,16 @@ public void get(int index, Nullable${minor.class

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-11 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r161006318 --- Diff: exec/java-exec/src/main/codegen/templates/Decimal/CastVarCharDecimal.java --- @@ -85,6 +85,30 @@ public void eval

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-11 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r161004122 --- Diff: exec/java-exec/src/main/codegen/templates/Decimal/CastIntDecimal.java --- @@ -68,15 +68,31 @@ public void setup() { public void

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-11 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160963518 --- Diff: exec/vector/src/main/codegen/templates/NullableValueVectors.java --- @@ -327,13 +327,17 @@ public Mutator getMutator(){ return v

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-11 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160941530 --- Diff: exec/java-exec/src/main/codegen/templates/SqlAccessors.java --- @@ -127,6 +127,25 @@ public String getString(int index

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-11 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160980556 --- Diff: exec/vector/src/main/codegen/templates/VariableLengthVectors.java --- @@ -539,7 +553,12 @@ public void setValueLengthSafe(int index, int length

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-11 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160987506 --- Diff: exec/java-exec/src/main/codegen/templates/Decimal/CastDecimalVarchar.java --- @@ -150,6 +150,14 @@ public void setup() { public

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-11 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160939410 --- Diff: exec/java-exec/src/main/codegen/templates/Decimal/DecimalFunctions.java --- @@ -102,7 +111,578 @@ <#-- For each DECIMAL... t

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-11 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r161002913 --- Diff: common/src/main/java/org/apache/drill/common/util/CoreDecimalUtility.java --- @@ -32,6 +32,14 @@ public static long getDecimal18FromBigDecimal

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-11 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160958360 --- Diff: exec/vector/src/main/codegen/templates/ComplexWriters.java --- @@ -99,7 +99,7 @@ public void write(Nullable${minor.class?cap_first}Holder h

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-09 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160492087 --- Diff: exec/vector/src/main/codegen/templates/VariableLengthVectors.java --- @@ -539,7 +553,12 @@ public void setValueLengthSafe(int index, int length

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-09 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160489866 --- Diff: exec/vector/src/main/codegen/templates/ComplexWriters.java --- @@ -99,7 +99,7 @@ public void write(Nullable${minor.class?cap_first}Holder h

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-09 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160480509 --- Diff: exec/java-exec/src/main/codegen/templates/SqlAccessors.java --- @@ -127,6 +127,25 @@ public String getString(int index

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-09 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160481004 --- Diff: exec/java-exec/src/main/codegen/templates/StringOutputRecordWriter.java --- @@ -146,7 +146,7 @@ public void writeField() throws IOException

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-09 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160458242 --- Diff: exec/java-exec/src/main/codegen/templates/Decimal/CastDecimalVarchar.java --- @@ -150,6 +150,14 @@ public void setup() { public

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-09 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160492409 --- Diff: exec/vector/src/main/java/org/apache/drill/exec/util/DecimalUtility.java --- @@ -159,9 +159,20 @@ public static BigDecimal

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-09 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160476071 --- Diff: exec/java-exec/src/main/codegen/templates/Decimal/DecimalFunctions.java --- @@ -102,7 +111,578 @@ <#-- For each DECIMAL... t

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-09 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160473858 --- Diff: exec/java-exec/src/main/codegen/templates/Decimal/DecimalAggrTypeFunctions2.java --- @@ -108,9 +108,12 @@ public void output

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-09 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160490947 --- Diff: exec/vector/src/main/codegen/templates/NullableValueVectors.java --- @@ -327,13 +327,17 @@ public Mutator getMutator(){ return v

[GitHub] drill pull request #570: DRILL-4834 decimal implementation is vulnerable to ...

2018-01-09 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/570#discussion_r160465652 --- Diff: exec/java-exec/src/main/codegen/templates/Decimal/CastIntDecimal.java --- @@ -68,15 +68,31 @@ public void setup() { public void

[GitHub] drill issue #1066: DRILL-3993: Changes to support Calcite 1.15

2018-01-09 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1066 @chunhui-shi, I have made additional fixes in new commits (commits after DRILL-3993: Changes after code review. 3120762). Could you please take a look? Also, I have created pull request

[GitHub] drill issue #1049: DRILL-5971: Fix INT64, INT32 logical types in complex par...

2018-01-09 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1049 @parthchandra, thanks for the pull request! LGTM, +1. ---

[GitHub] drill issue #1066: DRILL-3993: Changes to support Calcite 1.15

2017-12-29 Thread vvysotskyi
Github user vvysotskyi commented on the issue: https://github.com/apache/drill/pull/1066 @chunhui-shi, this branch is not ready completely. There is opened a pull request on Apache Calcite [CALCITE-2018](https://issues.apache.org/jira/browse/CALCITE-2018) which should be cherry

[GitHub] drill pull request #1049: DRILL-5971: Fix INT64, INT32 logical types in comp...

2017-12-26 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1049#discussion_r158702875 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/columnreaders/ColumnReaderFactory.java --- @@ -138,6 +138,8

[GitHub] drill pull request #1049: DRILL-5971: Fix INT64, INT32 logical types in comp...

2017-12-26 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1049#discussion_r158700125 --- Diff: exec/vector/src/main/codegen/templates/FixedValueVectors.java --- @@ -394,9 +394,11 @@ public void get(int index, Nullable${minor.class}Holder

[GitHub] drill pull request #1049: DRILL-5971: Fix INT64, INT32 logical types in comp...

2017-12-26 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1049#discussion_r158702957 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/writer/TestParquetWriter.java --- @@ -636,8 +636,10 @@ public void

[GitHub] drill pull request #1049: DRILL-5971: Fix INT64, INT32 logical types in comp...

2017-12-26 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1049#discussion_r158703477 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/store/parquet/TestParquetComplex.java --- @@ -193,4 +200,168 @@ public void notxistsField

[GitHub] drill pull request #1049: DRILL-5971: Fix INT64, INT32 logical types in comp...

2017-12-26 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1049#discussion_r158703375 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/store/parquet/TestParquetComplex.java --- @@ -193,4 +200,168 @@ public void notxistsField

[GitHub] drill pull request #1049: DRILL-5971: Fix INT64, INT32 logical types in comp...

2017-12-26 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1049#discussion_r158703216 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/store/parquet/TestParquetComplex.java --- @@ -193,4 +200,168 @@ public void notxistsField

[GitHub] drill pull request #1049: DRILL-5971: Fix INT64, INT32 logical types in comp...

2017-12-26 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1049#discussion_r158703447 --- Diff: exec/java-exec/src/test/java/org/apache/drill/exec/store/parquet/TestParquetComplex.java --- @@ -193,4 +200,168 @@ public void notxistsField

[GitHub] drill pull request #1066: DRILL-3993: Changes to support Calcite 1.15

2017-12-21 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1066#discussion_r158374197 --- Diff: exec/java-exec/src/main/codegen/includes/parserImpls.ftl --- @@ -351,4 +351,23 @@ SqlNode SqlDropFunction() : { return new

[GitHub] drill pull request #1066: DRILL-3993: Changes to support Calcite 1.15

2017-12-21 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1066#discussion_r158259594 --- Diff: contrib/storage-jdbc/src/main/java/org/apache/drill/exec/store/jdbc/JdbcPrel.java --- @@ -62,7 +62,7 @@ public JdbcPrel(RelOptCluster cluster

[GitHub] drill pull request #1066: DRILL-3993: Changes to support Calcite 1.15

2017-12-21 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1066#discussion_r158258451 --- Diff: contrib/storage-hbase/src/main/java/org/apache/drill/exec/store/hbase/HBaseSchemaFactory.java --- @@ -72,7 +72,16 @@ public AbstractSchema

[GitHub] drill pull request #1066: DRILL-3993: Changes to support Calcite 1.15

2017-12-21 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1066#discussion_r158258149 --- Diff: exec/java-exec/src/main/codegen/data/Parser.tdd --- @@ -75,6 +72,26 @@ implementationFiles: [ "parserImpl

[GitHub] drill pull request #1066: DRILL-3993: Changes to support Calcite 1.15

2017-12-21 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1066#discussion_r158258329 --- Diff: contrib/storage-hbase/src/main/java/org/apache/drill/exec/store/hbase/HBaseSchemaFactory.java --- @@ -72,7 +72,16 @@ public AbstractSchema

[GitHub] drill pull request #1066: DRILL-3993: Changes to support Calcite 1.15

2017-12-21 Thread vvysotskyi
Github user vvysotskyi commented on a diff in the pull request: https://github.com/apache/drill/pull/1066#discussion_r158260235 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/SqlConverter.java --- @@ -470,34 +576,32 @@ public void disallowTemporaryTables

  1   2   3   >