-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot convert symbolIDs["id"] (map index expression of type sq.CustomField) to sq.NumberField #13
Comments
I don't understand, the signature for |
Yeah - I ended up switching from sq.NumberField.Eq(sq.CustomField) to sq.CustomField.Eq(sq.NumberField) |
This is what gets generated
From this
And this is what I am trying to get
|
Almost there (Note the
is emitting
Meaning that all I need to do is figure out how to access the Edit: (For the people that come after me) I have managed to expose the things that were being blanked by adding
And that solves that problem. If you have a minute, I need to know how to get the Alternatively, is there a way to add a |
I can't figure out why sidenote: I dreadfully regret making CTEs and Subqueries just maps as the implementation is extremely dirty (I'm stuffing query metadata into the map as map entries) and also for stuff like this where CTE field lookups result in
Yeah that's an oversight lol, I was seriously considering whether or not |
I honestly wouldn't know how to do that, I have a fmt.Println("%#v", query) at the end. but it's got quite a bit of .. cruft :)
What I've ended up doing is putting the
|
Have got a sq.CustomField that's the id of a table, and I'm not allowed to convert it or compare it to the id field of another table.
Is there an easy way to convert a value, or do I need to (somehow) map all the fields in the CustomField to a NumberField mid-query?
The text was updated successfully, but these errors were encountered: