|
| 1 | +# Copyright 2025 Google LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +# C++-only parts of Koda Contrib. See the rest in //py/koladata/ext/contrib. |
| 16 | + |
| 17 | +load("@rules_cc//cc:cc_library.bzl", "cc_library") |
| 18 | + |
| 19 | +package(default_visibility = ["//visibility:private"]) |
| 20 | + |
| 21 | +licenses(["notice"]) |
| 22 | + |
| 23 | +cc_library( |
| 24 | + name = "operators", |
| 25 | + srcs = ["operators.cc"], |
| 26 | + visibility = ["//py/koladata/ext/contrib:__pkg__"], |
| 27 | + deps = [ |
| 28 | + ":flatten_cyclic_references", |
| 29 | + "//koladata:data_slice_qtype", |
| 30 | + "//koladata/internal/op_utils:qexpr", |
| 31 | + ], |
| 32 | + alwayslink = 1, |
| 33 | +) |
| 34 | + |
| 35 | +cc_library( |
| 36 | + name = "flatten_cyclic_references", |
| 37 | + srcs = ["flatten_cyclic_references.cc"], |
| 38 | + hdrs = ["flatten_cyclic_references.h"], |
| 39 | + deps = [ |
| 40 | + "//koladata:data_bag", |
| 41 | + "//koladata:data_slice", |
| 42 | + "//koladata:data_slice_qtype", |
| 43 | + "//koladata/internal:data_bag", |
| 44 | + "//koladata/internal:data_item", |
| 45 | + "//koladata/internal:data_slice", |
| 46 | + "//koladata/internal:dtype", |
| 47 | + "//koladata/internal:non_deterministic_token", |
| 48 | + "//koladata/internal:object_id", |
| 49 | + "//koladata/internal:schema_attrs", |
| 50 | + "//koladata/internal/op_utils:traverse_helper", |
| 51 | + "@com_google_absl//absl/container:flat_hash_map", |
| 52 | + "@com_google_absl//absl/hash", |
| 53 | + "@com_google_absl//absl/log", |
| 54 | + "@com_google_absl//absl/log:check", |
| 55 | + "@com_google_absl//absl/status", |
| 56 | + "@com_google_absl//absl/status:statusor", |
| 57 | + "@com_google_absl//absl/strings", |
| 58 | + "@com_google_absl//absl/strings:string_view", |
| 59 | + "@com_google_arolla//arolla/dense_array/qtype", |
| 60 | + "@com_google_arolla//arolla/jagged_shape/dense_array/util", |
| 61 | + "@com_google_arolla//arolla/qtype", |
| 62 | + "@com_google_arolla//arolla/util", |
| 63 | + "@com_google_arolla//arolla/util:status_backport", |
| 64 | + ], |
| 65 | +) |
0 commit comments