Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ enum QueryFeatures : ulong
OrderBy = 1 << 7,
Top = 1 << 8,
NonValueAggregate = 1 << 9,
DCount = 1 << 10,
NonStreamingOrderBy = 1 << 11,
ListAndSetAggregate = 1 << 12,
CountIf = 1 << 13,
HybridSearch = 1 << 14,
WeightedRankFusion = 1 << 15,
DCount = 1 << 10,
NonStreamingOrderBy = 1 << 11,
ListAndSetAggregate = 1 << 12,
CountIf = 1 << 13,
HybridSearch = 1 << 14,
WeightedRankFusion = 1 << 15,
HybridSearchSkipOrderByRewrite = 1 << 16,
GenerateEmbeddings = 1 << 17,
}
}
13 changes: 11 additions & 2 deletions Microsoft.Azure.Cosmos/src/Query/Core/QueryPlan/QueryInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ public IReadOnlyList<string> OrderByExpressions
get;
set;
}

[JsonProperty("embeddingParameterMap", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary<string, string> EmbeddingParameterMap
{
get;
set;
}

[JsonProperty("groupByExpressions")]
public IReadOnlyList<string> GroupByExpressions
Expand Down Expand Up @@ -105,8 +112,8 @@ public DCountInfo DCountInfo
{
get;
set;
}
}

[JsonProperty("hasNonStreamingOrderBy")]
public bool HasNonStreamingOrderBy
{
Expand Down Expand Up @@ -141,6 +148,8 @@ public bool HasAggregates

public bool HasOrderBy => (this.OrderBy != null) && (this.OrderBy.Count > 0);

public bool HasEmbeddingParameters => (this.EmbeddingParameterMap != null) && (this.EmbeddingParameterMap.Count > 0);

public bool HasOffset => this.Offset.HasValue;

public bool HasLimit => this.Limit.HasValue;
Expand Down
Loading
Loading