question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IsIn filter doesnt support optional values

See original GitHub issue

Hi there,

we have some optional table elements and we want to use the IsIn filter on them.

In our query is concerncostcentrals.Zuordnung a optional string parameter

let branches = [Some "EZ"; Some "BGA"; Some "KW"]
let! data =
        select {
            for concerncostcentrals in enmsSichtKstKonzern do
            where ( isIn (concerncostcentrals.Zuordnung) branches )
        }
        |> conn.SelectAsync<dbo.EnmsSicht_KstKonzern>

This query the will fail with an No mapping exists from object type Microsoft.FSharp.Core.FSharpOption1[[System.String, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] to a known managed provider native type.` exception

Any idea how we can get that working?

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Dzoukrcommented, Sep 14, 2021

Released as v2.4.1

0reactions
tforkmanncommented, Sep 14, 2021

Merci guys! You are amazing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pandas filtering (~isin) is not working
I think there is problem you have mixed types - numeric with strings. omzet_activity_paid_count_january_devices.
Read more >
Filter a Pandas DataFrame by a Partial String or Pattern in ...
Here, we want to filter by the contents of a particular column. We will use the Series. isin([list_of_values] ) function from Pandas which ......
Read more >
Spark isin() & IS NOT IN Operator Example
In Spark use isin() function of Column class to check if a column value of DataFrame exists/contains in a list of string values....
Read more >
pandas.DataFrame.filter — pandas 2.0.3 documentation
Subset the dataframe rows or columns according to the specified index labels. Note that this routine does not filter a dataframe on its...
Read more >
8 Ways to Filter Pandas DataFrames
A common operation in data analysis is to filter values based on a condition or multiple conditions. · We start by importing the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found