Skip to content

Commit

Permalink
More updates and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosfigueira committed Feb 28, 2025
1 parent e67db71 commit 8f7b62e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal sealed class DistinctFunction : FunctionWithTableInput
public DistinctFunction()
: base("Distinct", TexlStrings.AboutDistinct, FunctionCategories.Table, DType.EmptyTable, 0x02, 2, 2, DType.EmptyTable)
{
ScopeInfo = new FunctionScopeInfo(this);
ScopeInfo = new FunctionScopeInfo(this, usesAllFieldsInScope: false);
}

public override IEnumerable<TexlStrings.StringGetter[]> GetSignatures()
Expand Down
1 change: 1 addition & 0 deletions src/tests/Microsoft.PowerFx.Core.Tests.Shared/TexlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ public void TexlFunctionTypeSemanticsFirstN()
[InlineData("Distinct(Table, Time)", "*[Date:D, DateTime:d, Time:T]", "*[Value:T]")]
[InlineData("Distinct(Table, G)", "*[G:g, OS:l]", "*[Value:g]")]
[InlineData("Distinct(Table, OS)", "*[G:g, OS:l]", "*[Value:l]")]
[InlineData("Distinct(Table, Untyped)", "*[Untyped:O]", "*[Value:O]", true)]
public void TexlFunctionTypeSemanticsDistinct(string expression, string tableType, string expectedResult, bool failsForPFxV1 = false)
{
foreach (var usePFxV1 in new[] { false, true })
Expand Down

0 comments on commit 8f7b62e

Please sign in to comment.