Comments (10)
I'm working on this.
from siglens.
Hello @AndrewHess, @nkunal, here's my proposal for new names for 'applyXYZ' functions in accordance with the query type and flow in segsearch.go and searchaggs.go files. Please let me know if they are fine to go ahead with or any changes are required.
Sl. No. | Existing Function Name | Proposed Function Name | Change | Purpose of function |
---|---|---|---|---|
1 | applyAggregationsToResult | applyAggregationsToResult | No change | Applies aggregations to the search results based on the provided query aggregators. |
2 | applyAggregationsSingleBlock | applyAggregationsToSingleBlock | Changed | Applies aggregations for a single block of data. |
3 | applyAggsToResultFastPath | applyAggregationsToResultFastPath | Changed | Similar to applyAggregationsToResult but optimized for specific scenarios |
4 | applyAggsSingleBlockFastPath | applyAggregationsToSingleBlockFastPath | Changed | Similar to applyAggregationsToSingleBlock but optimized for specific scenarios |
5 | applySegStatsToMatchedRecords | applySegStatsToMatchedRecords | No change | Applies segment statistics to matched records. |
6 | applySegmentStatsUsingDictEncoding | applySegmentStatsUsingDictEncoding | No change | Returns all columns that are not dict encoded |
7 | ApplyAgileTree | applyAgileTree | Changed | Applies Agile Tree to a query |
from siglens.
just for fun, could you feed this file to chatGPT and see what suggestions it might give to simplify some of the func naming
from siglens.
Sure @nkunal. Here's the Chatgpt suggestions:
Original: applyAggregationsToResult
New Name: ProcessQueryAggregations
Original: applyAggregationsSingleBlock
New Name: AggregateSingleBlockData
Original: applyAggsToResultFastPath
New Name: ProcessQueryAggregationsFastPath
Original: applyAggsSingleBlockFastPath
New Name: AggregateSingleBlockDataFastPath
Original: applySegStatsToMatchedRecords
New Name: ProcessSegmentStatsForMatches
Original: applySegmentStatsUsingDictEncoding
New Name: CalculateEncodedSegmentStatistics
Original: ApplyAgileTree
New Name: ExecuteAgileTreeAggregation
from siglens.
Sure @nkunal. Here's the Chatgpt suggestions:
Original: applyAggregationsToResult
New Name: ProcessQueryAggregations
Original: applyAggregationsSingleBlock
New Name: AggregateSingleBlockData
Original: applyAggsToResultFastPath
New Name: ProcessQueryAggregationsFastPath
Original: applyAggsSingleBlockFastPath
New Name: AggregateSingleBlockDataFastPath
Original: applySegStatsToMatchedRecords
New Name: ProcessSegmentStatsForMatches
Original: applySegmentStatsUsingDictEncoding
New Name: CalculateEncodedSegmentStatistics
Original: ApplyAgileTree
New Name: ExecuteAgileTreeAggregation
Thanks Eashan, let us review this internally and get back to you. Given the thanksgiving holidays, we will get back to you by next tue/wed
from siglens.
The changes you proposed (not the ones from ChatGPT) look good, so you can make those changes. You might need to keep ApplyAgileTree
capitalized because I think it's used in a different package, but if not you can make it lowercase like you suggested.
Sorry I forgot to follow up on this earlier
from siglens.
I want to work on this
from siglens.
Great, go ahead
from siglens.
Hello @AndrewHess @nkunal,
I am interested in a Backend Internship (Posted on NUWorks).
I have thought about updating the function names with applyXYZ in segsearch.go and searchaggs.go files. Please review and confirm.
Filename | Old Function Name | Updated Function Name | Thought to Update |
---|---|---|---|
segsearch.go | applyRawSearchToNode | executeRawSearchOnNode | Execution of a raw search on a specific node. |
segsearch.go | applyRawSearchToConditions | executeRawSearchWithConditions | Execution of raw search using certain conditions. |
searchaggs.go | applyAggregationsToResult | aggregateResults | Simplifies the name, clearly stating aggregation of results. |
searchaggs.go | applyAggregationsSingleBlock | aggregateSingleBlockResults | Specifies aggregation of results for a single block. |
searchaggs.go | applyAggsToResultFastPath | aggregateResultsFastPath | Indicates a faster path for aggregating results. |
searchaggs.go | applyAggsSingleBlockFastPath | aggregateSingleBlockFastPath | Denotes a faster aggregation path for a single block. |
searchaggs.go | applySegStatsToMatchedRecords | applySegmentStatisticsToRecords | Descriptive, specifying that segment statistics are applied. |
searchaggs.go | applySegmentStatsUsingDictEncoding | applySegmentStatisticsWithDictEncoding | Simplifies the name |
- For, ApplyAgileTree -> applyAgileTree
we can refactor it, it is used in seqquery.go file
from siglens.
The PR has some errors. I will update and fix them.
from siglens.
Related Issues (20)
- [BUG] install.sh does not work in latest ubuntu system
- [STORY] Doc : Add macOS setup instructions in CONTRIBUTING.md HOT 2
- Add spath support in SPLUNK QL
- [BUG] server stops when invalid regex expressions use
- [BUG] FIX vector usuage example
- [BUG] Visualization tab doesn't update HOT 3
- [STORY] : add new issue type -- `DOC` HOT 1
- [BUG] HOT 3
- [BUG] - Get Contacts is throwing 400 Bad Request when HOT 1
- Are there any plans to support Serilog writing? HOT 1
- [BUG] Using filebeat software to get logs is not real time HOT 7
- [STORY] SPL Add sub command list HOT 4
- [STORY] SPL: Add mvindex HOT 3
- [STORY] SPL: Add mvexpand HOT 2
- [STORY] SPL: Add append HOT 3
- [STORY] SPL: Add streamstats HOT 1
- [STORY] SPL: Add bin HOT 2
- [DOC] Document which ports and volumes should be mapped for use with Docker HOT 1
- [STORY] Send span status to frontend
- [STORY] Display error spans in Gantt chart
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from siglens.