Giter Site home page Giter Site logo

Comments (10)

Eashan7 avatar Eashan7 commented on May 17, 2024

I'm working on this.

from siglens.

Eashan7 avatar Eashan7 commented on May 17, 2024

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.

nkunal avatar nkunal commented on May 17, 2024

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.

Eashan7 avatar Eashan7 commented on May 17, 2024

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.

nkunal avatar nkunal commented on May 17, 2024

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.

AndrewHess avatar AndrewHess commented on May 17, 2024

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.

ChinmayDharwad24 avatar ChinmayDharwad24 commented on May 17, 2024

I want to work on this

from siglens.

AndrewHess avatar AndrewHess commented on May 17, 2024

Great, go ahead

from siglens.

ChinmayDharwad24 avatar ChinmayDharwad24 commented on May 17, 2024

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.

ChinmayDharwad24 avatar ChinmayDharwad24 commented on May 17, 2024

The PR has some errors. I will update and fix them.

from siglens.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.