|
| 1 | +diff --git zetasql/analyzer/BUILD zetasql/analyzer/BUILD |
| 2 | +index 91c73c6..57e5609 100644 |
| 3 | +--- zetasql/analyzer/BUILD |
| 4 | ++++ zetasql/analyzer/BUILD |
| 5 | +@@ -18,7 +18,7 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library") |
| 6 | + load(":builddefs.bzl", "gen_analyzer_test") |
| 7 | + |
| 8 | + package( |
| 9 | +- default_visibility = ["//zetasql/base:zetasql_implementation"], |
| 10 | ++ default_visibility = ["//visibility:public"], |
| 11 | + ) |
| 12 | + |
| 13 | + filegroup( |
1 | 14 | diff --git zetasql/base/BUILD zetasql/base/BUILD
|
2 | 15 | index 75c8e3e..7874e07 100644
|
3 | 16 | --- zetasql/base/BUILD
|
4 | 17 | +++ zetasql/base/BUILD
|
5 | 18 | @@ -17,7 +17,7 @@
|
6 | 19 | licenses(["notice"]) # Apache v2.0
|
7 |
| - |
| 20 | + |
8 | 21 | package(
|
9 | 22 | - default_visibility = [":zetasql_implementation"],
|
10 | 23 | + default_visibility = ["//visibility:public"],
|
11 | 24 | )
|
12 |
| - |
| 25 | + |
13 | 26 | package_group(
|
14 | 27 | diff --git zetasql/parser/BUILD zetasql/parser/BUILD
|
15 | 28 | index 5c3c636..5404163 100644
|
16 | 29 | --- zetasql/parser/BUILD
|
17 | 30 | +++ zetasql/parser/BUILD
|
18 | 31 | @@ -20,7 +20,7 @@ load("//bazel:bison.bzl", "genyacc")
|
19 | 32 | load("//bazel:flex.bzl", "genlex")
|
20 |
| - |
| 33 | + |
21 | 34 | package(
|
22 | 35 | - default_visibility = ["//zetasql/base:zetasql_implementation"],
|
23 | 36 | + default_visibility = ["//visibility:public"],
|
24 | 37 | )
|
25 |
| - |
| 38 | + |
26 | 39 | genrule(
|
| 40 | + |
| 41 | +--- zetasql/public/simple_catalog.h |
| 42 | ++++ zetasql/public/simple_catalog.h |
| 43 | +@@ -55,6 +55,11 @@ class SimpleTableProto; |
| 44 | + // |
| 45 | + // This class is thread-safe. |
| 46 | + class SimpleCatalog : public EnumerableCatalog { |
| 47 | ++ friend void dropOwnedTable(SimpleCatalog* catalog, const std::string& name); |
| 48 | ++ friend void dropOwnedTableIfExists(SimpleCatalog* catalog, const std::string& name); |
| 49 | ++ friend void dropOwnedFunction(SimpleCatalog* catalog, const std::string& full_name_without_group); |
| 50 | ++ |
| 51 | ++ |
| 52 | + public: |
| 53 | + // Construct a Catalog with catalog name <name>. |
| 54 | + // |
| 55 | + |
| 56 | +diff --git zetasql/public/sql_formatter.cc zetasql/public/sql_formatter.cc |
| 57 | +index 26e52ed..28e8928 100644 |
| 58 | +--- zetasql/public/sql_formatter.cc |
| 59 | ++++ zetasql/public/sql_formatter.cc |
| 60 | +@@ -72,6 +72,7 @@ absl::Status FormatSql(const std::string& sql, std::string* formatted_sql) { |
| 61 | + std::vector<ParseToken> parse_tokens; |
| 62 | + ParseTokenOptions options; |
| 63 | + options.stop_at_end_of_statement = true; |
| 64 | ++ options.include_comments = true; |
| 65 | + const int statement_start = location.byte_position(); |
| 66 | + const absl::Status token_status = |
| 67 | + GetParseTokens(options, &location, &parse_tokens); |
0 commit comments