Skip to content

Make copy, getLgK public in cpc - #38

Merged
freakyzoidberg merged 1 commit into
apache:mainfrom
QasimKhan5d:cpc-sketch
Apr 1, 2025
Merged

freakyzoidberg merged 1 commit into
apache:mainfrom
QasimKhan5d:cpc-sketch

Conversation

@QasimKhan5d

Copy link
Copy Markdown
Contributor

No description provided.

@QasimKhan5d QasimKhan5d changed the title Cpc sketch Make copy, getLgK public in cpc Mar 31, 2025
@freakyzoidberg
freakyzoidberg changed the base branch from cpc-sketch to main March 31, 2025 14:30
@freakyzoidberg
freakyzoidberg requested a review from Copilot March 31, 2025 14:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR makes internal functions public by renaming them to follow Go's export conventions, and updates the corresponding tests and references.

  • Export getLgK as GetLgK in CpcSketch
  • Export copy as Copy in CpcSketch and update its usage in union and test files

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
cpc/utils_test.go Updated error message case to match the new public API (GetLgK).
cpc/cpc_union.go Renamed copy() to Copy() when copying sketches, ensuring API consistency.
cpc/cpc_sketch_test.go Changed copy() to Copy() in tests to use the newly exported API.
cpc/cpc_sketch.go Updated method names and comments for getLgK and copy, making them public.

@freakyzoidberg
freakyzoidberg merged commit 24ca8eb into apache:main Apr 1, 2025
@QasimKhan5d
QasimKhan5d deleted the cpc-sketch branch April 1, 2025 08:38
@freakyzoidberg freakyzoidberg added enhancement New feature or request CPCSketch labels Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CPCSketch enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants