ExpressionNotSupportedException when a $set stage expression references a member of a captured constant

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 3.7.1
    • Affects Version/s: 3.7.0
    • Component/s: LINQ, LINQ3
    • None
    • 🔴 Status Update Needed
    • Fully Compatible
    • Dotnet Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Summary

      ExpressionNotSupportedException: unable to determine which serializer to use for the result thrown when a set stage uses a ternary expression whose condition references a member of a captured constant.

      Version 3.7

      How to Reproduce

      Attached Program.cs

            Assignee:
            Oleksandr Poliakov
            Reporter:
            Janis Zinn
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: