Commit dce7d12b authored by rossfuhrman's avatar rossfuhrman

Fix segment spelling

parent afda2f2a
...@@ -121,7 +121,7 @@ module Gitlab ...@@ -121,7 +121,7 @@ module Gitlab
count_grouped = relation.group(column).select(Arel.star.count.as('count_grouped')) count_grouped = relation.group(column).select(Arel.star.count.as('count_grouped'))
cte = Gitlab::SQL::CTE.new(:count_cte, count_grouped) cte = Gitlab::SQL::CTE.new(:count_cte, count_grouped)
# For example, 9 segements gives 10 buckets # For example, 9 segments gives 10 buckets
bucket_segments = bucket_size - 1 bucket_segments = bucket_size - 1
width_bucket = Arel::Nodes::NamedFunction width_bucket = Arel::Nodes::NamedFunction
......
...@@ -21,7 +21,7 @@ RSpec.shared_examples 'SQL set operator' do |operator_keyword| ...@@ -21,7 +21,7 @@ RSpec.shared_examples 'SQL set operator' do |operator_keyword|
expect(set_operator.to_sql).to eq("(#{to_sql(relation_1)})\n#{operator_keyword}\n(#{to_sql(relation_2)})") expect(set_operator.to_sql).to eq("(#{to_sql(relation_1)})\n#{operator_keyword}\n(#{to_sql(relation_2)})")
end end
it 'skips Model.none segements' do it 'skips Model.none segments' do
empty_relation = User.none empty_relation = User.none
set_operator = described_class.new([empty_relation, relation_1, relation_2]) set_operator = described_class.new([empty_relation, relation_1, relation_2])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment