Can't query table with optional key
See original GitHub issueHi guys,
I’m trying to query following statement.
let enmsSichtKstEnergiezentrale = table<EnmsSicht_KstEnergiezentrale>
let enmsSichtKstErzeuger = table<EnmsSicht_KstErzeuger>
let! plants =
select {
for ez in enmsSichtKstEnergiezentrale do
join erz in enmsSichtKstErzeuger on (ez.KstStelle = erz.USER_KstUebergeordnet.Value)
orderBy ez.KstStelle
}
|> conn.SelectAsync<EnmsSicht_KstEnergiezentrale,EnmsSicht_KstErzeuger>
Sadly I run into following error:
Could not get data "The given key was not present in the dictionary."
I have to join on a optional key. In this case erz.USER_KstUebergeordnet.Value
.
Do you guys have an idea what could be the reason for that error message?
Thanks,
Tim
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
I can't query a table without primary key
I'm trying to query through a model in Django that has no Primary Key . I need to query though it so I...
Read more >Not being able to query non-materialized tables should be ...
I just can't find another way to create a mat table with rekeyed topic. Ultimately, I would want a join by a foreign...
Read more >Can't add a foreign key constraint in a table on Postgresql
A foreign key constraint specifies that the values in a column ... Adding foreign key is not mandatory and you can do every...
Read more >Query partitioned tables | BigQuery
The key to address a range partition is the start of the range. ... Cannot query over table 'project_id.dataset.table' without a filter that...
Read more >Add or change a table's primary key in Access
To set a table's primary key, open the table in Design view. Select the field (or fields) that you want to use, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Incoming PR…
FYI, I just checked and
groupBy
worked fine with option types (I added a new unit test to make sure). So no other fix is needed.