Select Type Error: can't convert attribute to interval
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
Research direction
Start with the combined-relation and node(:slot_templates) example in the issue, comparing select with the working project call. Build a minimal reproduction for the reported TypeError, then verify that select with the renamed schema produces the desired output without requiring project.
Written by the indexing model from the issue text.
Description
rom v4.1.3
I ran into a similar issue to this
https://discourse.hanamirb.org/t/select-clause-in-a-repository/396/4
I don't have a repo script yet but I was trying to combine two relations and edit one of the nodes, eg:
campaign_region_relation
.join(:base_region)
.combine(slot_templates: :slot_types)
.node(:slot_templates) do |r|
r.select(*r.schema.rename(slot_template_key: :key))
end
would result in
TypeError: can't convert ROM::SQL::Attribute into time interval
But change select to project and I'd get the desired output
- Dominant language
- Ruby
- Stars
- 220
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rom-rb/rom-sql
-
bug help wanted
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
bug help wanted
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
bug help wanted
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
bug help wanted
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
bug help wanted
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
バグ
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
voxpupuli/puppet-epel#186 · 1 comment ·
-
external_created_at is no longer used for the message timestamp since the new message UI (v4.4.0) OpenBug Frontend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
TheOdinProject/curriculum#31402 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100