-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-- Change by ZetaSQL Team <[email protected]>: Updated the instructions for running execute_query with docker on MacOS with M1/M2 chips. -- Change by ZetaSQL Team <[email protected]>: Add a note about MacOS users seeing the error `execute_query_macos cannot be opened because the developer cannot be verified.` -- Change by ZetaSQL Team <[email protected]>: Refactoring in preparation for UPDATE constructor. -- Change by ZetaSQL Team <[email protected]>: Change the ZetaSQL Dockerfile to support different build modes. -- Change by Jeff Shute <[email protected]>: Add tests that check that a sql file runs successfully in execute_query. -- Change by ZetaSQL Team <[email protected]>: add a new TO_JSON signature that supports arg `unsupported_fiels`. -- Change by Jeff Shute <[email protected]>: Add some more example queries in examples/pipe_queries. -- Change by Brandon Dolphin <[email protected]>: Begin adding Measure type to TypeProto. -- Change by ZetaSQL Team <[email protected]>: Add per column OPTIONS and WITH COLUMN OPTIONS to analyzer. -- Change by ZetaSQL Team <[email protected]>: Handle lambda functions directly in the BuiltinFunctionRegistry scalar function APIs. -- Change by ZetaSQL Team <[email protected]>: Add per column OPTIONS and WITH COLUMN OPTIONS to analyzer. -- Change by ZetaSQL Team <[email protected]>: Add optional_ref library. -- Change by John Fremlin <[email protected]>: Add a testcase for deeply nested structs and arrays in JSON -- Change by ZetaSQL Team <[email protected]>: Update the ZetaSQL documentation: -- Change by John Fremlin <[email protected]>: Truncate output for deeply nested array expressions in unparser -- Change by ZetaSQL Team <[email protected]>: Update pipe syntax docs with TW peer review edits -- Change by Jeff Shute <[email protected]>: Fix execute_query command line help. -- Change by ZetaSQL Team <[email protected]>: add a new named arg `unsupported_fiels` for the TO_JSON function. -- Change by John Fremlin <[email protected]>: Truncate output for deeply nested CASE expressions in unparser -- Change by ZetaSQL Team <[email protected]>: Add MAP_REPLACE signatures, and reference implementation for KV pairs version -- Change by ZetaSQL Team <[email protected]>: Remove unnecessarily explicit function registrations from reference_impl/function.cc -- Change by Jeff Shute <[email protected]>: Adjust text area size so results are more visible. -- Change by ZetaSQL Team <[email protected]>: Disable formatting of SQL inside non-multiline string literals. -- Change by ZetaSQL Team <[email protected]>: Fixed issue with formatting SQL inside string literals when input string contains \r\n line endings. -- Change by ZetaSQL Team <[email protected]>: Format textproto inside annotated string literal. -- Change by ZetaSQL Team <[email protected]>: Disambiguate between open and close brackets annotations for braced constructor syntax. -- Change by Jeff Shute <[email protected]>: Improve multi-statement output in execute_query web. -- Change by ZetaSQL Team <[email protected]>: add a new named arg `unsupported_fiels` for the TO_JSON function. -- Change by ZetaSQL Team <[email protected]>: add a new built-in enum `UnsupportedFields` to be used by TO_JSON. -- Change by ZetaSQL Team <[email protected]>: Record parse location for OrderByItem iff record type is not PARSE_LOCATION_RECORD_NONE. -- Change by ZetaSQL Team <[email protected]>: Unify Lambda and non-lambda AlgebrizeFunctionCall codepaths -- Change by ZetaSQL Team <[email protected]>: small formatting updates for named arguments -- Change by ZetaSQL Team <[email protected]>: Fix the example Docker image name in the ZetaSQL doc. -- Change by ZetaSQL Team <[email protected]>: Refactor the parse AST and the grammar to use postfix table operators (e.g. TABLESAMPLE) on ASTTableExpression. -- Change by ZetaSQL Team <[email protected]>: Fix ZetaSQL documentation. GitOrigin-RevId: a68e25b308dadf3e78c4d22ec41adf72f8b08e5b Change-Id: I586b6974dbdb4e2bb4c99ba641ef96916ec33ba6
- Loading branch information
1 parent
f30c319
commit 194cd32
Showing
220 changed files
with
5,902 additions
and
6,180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright 2024 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -e | ||
set -x | ||
|
||
MODE=$1 | ||
|
||
CC=/usr/bin/gcc | ||
CXX=/usr/bin/g++ | ||
|
||
if [ "$MODE" = "build" ]; then | ||
# Build everything. | ||
bazel build ${BAZEL_ARGS} -c opt ... | ||
elif [ "$MODE" = "execute_query" ]; then | ||
# Install the execute_query tool. | ||
bazel build ${BAZEL_ARGS} -c opt --dynamic_mode=off //zetasql/tools/execute_query:execute_query | ||
# Move the generated binary to the home directory so that users can run it | ||
# directly. | ||
cp /zetasql/bazel-bin/zetasql/tools/execute_query/execute_query $HOME/bin/execute_query | ||
# Remove the downloaded and generated artifacts to keep the image small. | ||
bazel clean --expunge | ||
else | ||
echo "Unknown mode: $MODE" | ||
echo "Supported modes are: build, execute_query" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.