Skip to content

Commit

Permalink
Export of internal ZetaSQL changes.
Browse files Browse the repository at this point in the history
  - Internal changes by ZetaSQL Team <no-reply@google.com>
  - Add extractTableNamesFromNextStatement to Java Analyzer. by ZetaSQL Team <no-reply@google.com>
  - Fix column pruning in ResolvedASTs from templated SQL TVFs. by ZetaSQL Team <no-reply@google.com>
  - Restrict propagation of can_flatten. by ZetaSQL Team <no-reply@google.com>
  - After map support, it's illegal to write nulls to map key... by ZetaSQL Team <no-reply@google.com>
  - Update comment on definition of IMMUTABLE to clarify that by ZetaSQL Team <no-reply@google.com>
  - Consolidate integer round trip tests for NumericValue and... by ZetaSQL Team <no-reply@google.com>
  - Remove IntegerDivide function in favor of DivideToIntegra... by ZetaSQL Team <no-reply@google.com>
  - Fix a problem with error detection when there are excess ... by ZetaSQL Team <no-reply@google.com>
  - Add method ResolvedNode::MarkFieldsAccessed() to automati... by ZetaSQL Team <no-reply@google.com>
  - Update 'Compute a subtotal' example. It was generating a ... by ZetaSQL Team <no-reply@google.com>
  - Avoid repeating implementation in comparison operator tes... by ZetaSQL Team <no-reply@google.com>
  - Fix a problem with error detection when there are excess ... by ZetaSQL Team <no-reply@google.com>
  - Support dashed identifiers in CREATE [MATERIALIZED] VIEW ... by ZetaSQL Team <no-reply@google.com>
  - Add DebugString() method to ColumnToVariableMapping. by ZetaSQL Team <no-reply@google.com>
  - ZetaSQL: Fix Build break by Matthew Brown <matthewbr@google.com>
  - Cleanup ValueOrDie and ASSERT_OK_AND_ASSIGN from numeric_... by ZetaSQL Team <no-reply@google.com>
  - ZetaSQL: Upgrade Bison version by Matthew Brown <matthewbr@google.com>
  - Refactor SetOperationResolver in preparation for supporti... by ZetaSQL Team <no-reply@google.com>
  - Validator support for ResolvedRecursiveScan and ResolvedR... by ZetaSQL Team <no-reply@google.com>
  - Consolidate tests for multiplications and divisions for N... by ZetaSQL Team <no-reply@google.com>
  - [refactoring] Replace std::enable_if_t in numeric_value w... by ZetaSQL Team <no-reply@google.com>
  - Add DebugString() method to TupleData. by ZetaSQL Team <no-reply@google.com>
  - Make BigNumericValue::has_fractional_part more efficient,... by ZetaSQL Team <no-reply@google.com>
  - Add serialization methods to NumericValue/BigNumeric aggr... by ZetaSQL Team <no-reply@google.com>
  - Simplify variance tests for NumericValue, by making them ... by ZetaSQL Team <no-reply@google.com>
  - Add check that recursive queries are actually a UNION. by ZetaSQL Team <no-reply@google.com>
  - Renaming IntegerDivide to DivideToIntegralValue by ZetaSQL Team <no-reply@google.com>
  - Fix handling of WITH RECURSIVE queries with duplicated WI... by ZetaSQL Team <no-reply@google.com>
  - ZetaSQL: Suppress many more warnings in ZetaSQL build by Matthew Brown <matthewbr@google.com>
  - Adding PERCENTILE_DISC function for BigNumeric by ZetaSQL Team <no-reply@google.com>
  - Replace a DivMod call in BigNumericValue with /= for simp... by ZetaSQL Team <no-reply@google.com>
  - Reference implementation for BigNumeric MOD and DIV by ZetaSQL Team <no-reply@google.com>
  - Resolver support for RECURSIVE WITH when no WITH entries ... by ZetaSQL Team <no-reply@google.com>
  - ZetaSQL: Fix Build break by Matthew Brown <matthewbr@google.com>
  - Add resolved ast support for UNNEST on paths through arra... by ZetaSQL Team <no-reply@google.com>
  - IntegerDivide and Mod for BigNumericValue by ZetaSQL Team <no-reply@google.com>
  - Adjust parse location to the last parsed token before the... by ZetaSQL Team <no-reply@google.com>
  - Make NumericValue's and BigNumericValue's UnaryMinus, Abs... by ZetaSQL Team <no-reply@google.com>
  - Allow script variables to be used as constant function ar... by ZetaSQL Team <no-reply@google.com>
  - Fix some test data for BigNumericValue::AppendAndFormat. by ZetaSQL Team <no-reply@google.com>
  - Support FORMAT("%g", x) and FORMAT("%G", x) for NUMERIC a... by ZetaSQL Team <no-reply@google.com>
  - Expose random generation to SWIG interface for Numeric an... by ZetaSQL Team <no-reply@google.com>
  - Move FORMAT test data for NUMERIC and BIGNUMERIC from for... by ZetaSQL Team <no-reply@google.com>
  - Support formatting NumericValue and BigNumericValue with ... by ZetaSQL Team <no-reply@google.com>
  - [refactoring] Replace std::enable_if_t in fixed_int* with... by ZetaSQL Team <no-reply@google.com>
  - When error message happens on named argument - use the na... by ZetaSQL Team <no-reply@google.com>
  - Include name of named argument in DebugString of Function... by ZetaSQL Team <no-reply@google.com>
  - Refactor WithSubqueryInfo so that it may also be used for... by ZetaSQL Team <no-reply@google.com>
  - When determining whether to reuse the computation of fiel... by ZetaSQL Team <no-reply@google.com>
  (And 68 more changes)

GitOrigin-RevId: 6ba4c0bb51c70a00e08817e560fb6d6f545e5e5f
Change-Id: Iab787fab3afe70167ee680469af210f0701c474f
  • Loading branch information
ZetaSQL Team authored and ibzib committed Jun 3, 2020
1 parent 7d983d3 commit fa3c85e
Show file tree
Hide file tree
Showing 230 changed files with 16,900 additions and 5,862 deletions.
31 changes: 0 additions & 31 deletions bazel/common.patch

This file was deleted.

13 changes: 6 additions & 7 deletions bazel/zetasql_deps_step_2.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,9 @@ java_library(
if not native.existing_rule("google_bazel_common"):
http_archive(
name = "google_bazel_common",
strip_prefix = "bazel-common-5bd8dc4fce8157f1e894ad0b51288ac8bfa7a150",
urls = ["https://github.com/google/bazel-common/archive/5bd8dc4fce8157f1e894ad0b51288ac8bfa7a150.zip"],
sha256 = "86051547ed1fdc699a5688918a5da1bce312750e7ee00a0714b780f6ce8bb6e4",
patches = ["@com_google_zetasql//bazel:common.patch"],
strip_prefix = "bazel-common-eb5c7e5d6d2c724fe410792c8be9f59130437e4a",
urls = ["https://github.com/google/bazel-common/archive/eb5c7e5d6d2c724fe410792c8be9f59130437e4a.zip"],
sha256 = "18f266d921db1daa2ee9837343938e37fa21e0a8b6a0e43a67eda4c30f62b812",
)

##########################################################################
Expand All @@ -757,9 +756,9 @@ java_library(
http_archive(
name = "bison",
build_file_content = all_content,
strip_prefix = "bison-3.2.4",
sha256 = "cb673e2298d34b5e46ba7df0641afa734da1457ce47de491863407a587eec79a",
urls = ["https://ftp.gnu.org/gnu/bison/bison-3.2.4.tar.gz"],
strip_prefix = "bison-3.6.2",
sha256 = "e28ed3aad934de2d1df68be209ac0b454f7b6d3c3d6d01126e5cd2cbadba089a",
urls = ["https://ftp.gnu.org/gnu/bison/bison-3.6.2.tar.gz"],
)

http_archive(
Expand Down
2 changes: 1 addition & 1 deletion docs/aggregate_analytic_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ SUM(DISTINCT x) OVER ()
```

[analytic-function-concepts]: https://github.com/google/zetasql/blob/master/docs/analytic-function-concepts
[aggregate-analytic-concepts]: https://github.com/google/zetasql/blob/master/docs/analytic-function-concepts#aggregate-analytic-functions
[aggregate-analytic-concepts]: https://github.com/google/zetasql/blob/master/docs/analytic-function-concepts#aggregate_analytic_function_concepts

[analytic-functions-link-to-aggregate-functions]: https://github.com/google/zetasql/blob/master/docs/aggregate_functions

15 changes: 8 additions & 7 deletions docs/aggregate_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ ANY_VALUE(expression [HAVING (MAX | MIN) expression2]) [OVER (...)]

**Description**

Returns any value from the input or `NULL` if there are zero input rows.
The value
returned is non-deterministic, which means you might receive a different result
each time you use this function.
Returns `expression` for some row chosen from the group. Which row is chosen is
nondeterministic, not random. Returns `NULL` when the input produces no
rows. Returns `NULL` when `expression` is `NULL` for all rows in the group.

`ANY_VALUE` behaves as if `RESPECT NULLS` is specified;
Rows for which `expression` is `NULL` are considered and may be selected.

**Supported Argument Types**

Expand Down Expand Up @@ -733,9 +735,8 @@ COUNTIF([DISTINCT] expression [HAVING (MAX | MIN) expression2]) [OVER (...)]

**Description**

Returns the count of `TRUE` values for `expression`.
Returns `0` if there are zero input rows or `expression` evaluates to `FALSE`
for all rows.
Returns the count of `TRUE` values for `expression`. Returns `0` if there are
zero input rows, or if `expression` evaluates to `FALSE` or `NULL` for all rows.

**Supported Argument Types**

Expand Down
Loading

0 comments on commit fa3c85e

Please sign in to comment.