You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/QuasiStableCardinalityEstimator.jl
+3-3
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ to the magnitude of the original weight of the output paths.
53
53
- partial_paths::Matrix{Color} - the matrix of partial paths describing the current traversal over the lifted color graph.
54
54
- partial_weights::Vector{W} - the list of weights for each partial path.
55
55
- num_samples::Int - the number of paths to sample, determining the size of the output.
56
-
- sampling_strategy::SAMPLING_STRATEGY - how to select samples from the partial paths. Will only check if this is set to "uniform" to sample uniformly.
56
+
- sampling_strategy::SAMPLING_STRATEGY - how to select samples from the partial paths. Will only check if this is set to "uniform" to sample uniformly.
57
57
Otherwise, just selects samples by prioritizing those with higher weights.
58
58
"""
59
59
functionsample_paths(partial_paths::Matrix{Color}, partial_weights::Vector{W}, num_samples::Int, sampling_strategy::SAMPLING_STRATEGY) where W
@@ -403,7 +403,7 @@ function get_cardinality_bounds(query::QueryGraph, summary::ColorSummary{DS}; ma
403
403
data_label_is_in_color =true
404
404
continue
405
405
end
406
-
if data_label in summary.color_filters[color]
406
+
if data_label in summary.color_filters[color]|| color in summary.color_full
407
407
data_label_is_in_color =true
408
408
end
409
409
end
@@ -489,7 +489,7 @@ function get_cardinality_bounds(query::QueryGraph, summary::ColorSummary{DS}; ma
489
489
data_label_in_color =true
490
490
continue
491
491
end
492
-
if data_label in summary.color_filters[new_color]
492
+
if data_label in summary.color_filters[new_color]|| new_color in summary.color_full
0 commit comments