Skip to content
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

Returning Table<'i, (Table<'j, Tup>, Table<'k, Tup>)> #1704

Open
workingjubilee opened this issue May 15, 2024 · 4 comments
Open

Returning Table<'i, (Table<'j, Tup>, Table<'k, Tup>)> #1704

workingjubilee opened this issue May 15, 2024 · 4 comments
Labels
enhancement New feature or request pgrx-iter

Comments

@workingjubilee
Copy link
Member

@eeeebbbbrrrr described a plan for how to make this happen by flattening out the nesting iterators into a single table, effectively an OUTER JOIN. This sounds desirable but we need more core work to happen so that we are well-positioned to do this.

@workingjubilee workingjubilee added the enhancement New feature or request label May 15, 2024
@workingjubilee workingjubilee changed the title Returning TableIterator<'i, (TableIterator<'j, Tup>, TableIterator<'k, Tup>)> Returning Table<'i, (Table<'j, Tup>, Table<'k, Tup>)> May 15, 2024
@workingjubilee
Copy link
Member Author

Also we should consider a shorter name for TableIterator (like perhaps just Table, or TableIter) so that typing out a signature like that doesn't drive someone bonkers.

@eeeebbbbrrrr
Copy link
Contributor

TableIter

@eeeebbbbrrrr
Copy link
Contributor

eeeebbbbrrrr commented May 15, 2024

We want the equivalent of:

# select generate_series(1, 3), generate_series(100, 101);
 generate_series | generate_series 
-----------------+-----------------
               1 |             100
               2 |             101
               3 |                
(3 rows)

But with as many columns (and nestings) as the user decides.

@workingjubilee
Copy link
Member Author

Current status: This idea has been made possible at all by #1701 but it's not clear when we'll be able to do more for it until after #1661

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pgrx-iter
Projects
None yet
Development

No branches or pull requests

2 participants