Skip to content

Commit

Permalink
simplifying check
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeep6189 committed Nov 19, 2024
1 parent c6f1444 commit 4bd83f9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import kamon.Kamon
import scala.jdk.CollectionConverters.asScalaBufferConverter

import filodb.core.GlobalConfig
import filodb.core.query.{ColumnFilter, Filter}
import filodb.core.query.Filter.Equals
import filodb.core.query.ColumnFilter
import filodb.core.query.Filter.{Equals, EqualsRegex}
import filodb.query.{AggregateClause, AggregationOperator, LogicalPlan, TsCardinalities}

/**
Expand Down Expand Up @@ -244,7 +244,7 @@ object HierarchicalQueryExperience extends StrictLogging {
*/
def getColumnsAfterFilteringOutDotStarRegexFilters(filters: Seq[ColumnFilter]): Seq[String] = {
filters.filter {
case ColumnFilter(_, Filter.EqualsRegex(value)) if value.toString == ".*" => false
case ColumnFilter(_, EqualsRegex(value)) if value.toString == ".*" => false
case _ => true
}.map(x => x.column)
}
Expand Down

0 comments on commit 4bd83f9

Please sign in to comment.