This is an automated email from the ASF dual-hosted git repository.

jhyde pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git


    from ed42c35bd1 [CALCITE-5813] Type inference for sql functions REPEAT, 
SPACE, XML_TRANSFORM, and XML_EXTRACT is incorrect
     new b3353015ad [CALCITE-5895] TABLESAMPLE (0) should return no rows
     new 50c3edfc3d [CALCITE-5916] In RelBuilder, add sample() method 
(equivalent to SQL TABLESAMPLE clause)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 core/src/main/codegen/templates/Parser.jj          | 42 ++++--------
 .../calcite/plan/RelOptSamplingParameters.java     | 38 +++++++----
 .../main/java/org/apache/calcite/rel/RelInput.java | 13 +++-
 .../org/apache/calcite/rel/core/RelFactories.java  | 30 +++++++++
 .../java/org/apache/calcite/rel/core/Sample.java   | 22 +++++--
 .../apache/calcite/rel/externalize/RelJson.java    |  4 ++
 .../calcite/rel/externalize/RelJsonReader.java     |  6 ++
 .../apache/calcite/rel/mutable/MutableSample.java  |  2 +-
 .../java/org/apache/calcite/sql/SqlSampleSpec.java | 77 +++++++++++++---------
 .../calcite/sql/validate/SqlValidatorImpl.java     |  9 +++
 .../apache/calcite/sql2rel/SqlToRelConverter.java  | 19 +++---
 .../java/org/apache/calcite/tools/RelBuilder.java  | 37 +++++++++++
 .../org/apache/calcite/test/RelBuilderTest.java    | 65 ++++++++++++++++++
 .../apache/calcite/test/SqlToRelConverterTest.java | 17 +++++
 .../org/apache/calcite/test/SqlValidatorTest.java  |  6 ++
 .../apache/calcite/test/SqlToRelConverterTest.xml  | 30 +++++++++
 .../src/test/resources/sql/tablesample.iq          | 30 +++++++--
 site/_docs/algebra.md                              |  1 +
 .../apache/calcite/sql/parser/SqlParserTest.java   | 14 ++++
 19 files changed, 365 insertions(+), 97 deletions(-)
 copy babel/src/test/resources/sql/dummy.iq => 
core/src/test/resources/sql/tablesample.iq (66%)
 mode change 100755 => 100644

Reply via email to