-
Notifications
You must be signed in to change notification settings - Fork 2
Rename and refactor #139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename and refactor #139
Changes from all commits
704e2ed
6928e16
ac1e1f5
21e5816
a3d3bdd
bef1cb2
d1e4bf3
6566def
7df7b87
c3c4393
e4721af
7ff1925
225b858
2104ce4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,7 @@ extern CountResult aggregate_count_contributions( | |
| typedef struct CountResultAccumulator | ||
| { | ||
| int64 max_flattening; | ||
| int64 max_flattened_count; | ||
| int64 max_flattened_count_with_max_flattening; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does this do?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is somewhat along the lines of |
||
| double max_noise_sigma; | ||
| int64 noise_with_max_sigma; | ||
| } CountResultAccumulator; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we have
valuehere now I'd revert toanyin the comments (both sql and C). I think it's better because we have no typing in C-land and that's the closest we can have to a signature. This will become noticeable when we get more UDFs and possibly overloads. Imagine we have amaxfunction of datetime and integer, would you rather write them asor
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but if you put
any, aids...there it doesn't make much sense, neither doesany, any.... Documenting "what" the argument represents is more useful than theanytype. Since those are caption comments, maybe we can drop the arguments - everything is properly documented in theCREATE ...statements anyway.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aidhas special meaning for us because we produce the aid adapters in code and we know right away what to expect.any, aids...is perfectly fine.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, let it be, you mean like this, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest commit looks nice. We have experimented with making it a proper postgres type but without success and ended up with our current design with the
AidSpecstuff.