Yes I think I will try

select(:id).qualify.map(:id)

It's a little verbose...

Curious if you couldn't just add something like:

dataset.select_map(:id, qualify: true)

I've noticed you use this convention on other things like joins where you 
can pass in :qualify as an option.

I think I will ultimately just stick with 
this:  some_dataset.qualify.select_map(Sequel[:table][:id]) though as there 
is less to reason about

Thanks for your help!

Aryk

On Thursday, June 4, 2020 at 8:34:13 PM UTC+3, Jeremy Evans wrote:
>
> On Thursday, June 4, 2020 at 9:44:33 AM UTC-7, Aryk Grosz wrote:
>>
>> Anyway to get them to work together?
>>
>> some_dataset.qualify.select_map(:id)
>>
>
> This works fine if id is an unambiguous reference.
>  
>
>> I don't believe I can qualify stuff after it.
>>
>
> Why not?  Dataset#qualify only qualifies existing unqualified identifiers, 
> it does not affect future dataset behavior.
>  
>
>> I could always just use Sequel[:table_name][:id[
>>
>
> This will work:
>  
>   some_dataset.qualify.select_map(Sequel[:table][:id])
>
> But curious if I'm missing something.
>>
>
> Maybe you are looking for something like:
>
>   some_dataset.select(:id).qualify.map(:id)
>
> Thanks,
> Jeremy
>

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/6384140d-4cdb-4d5e-ba30-1a10e27b21aao%40googlegroups.com.

Reply via email to