brianbroderick / lantern

Shine a light on your PG query logs. The project is being reimagined and is now a WIP.
Apache License 2.0
2 stars 0 forks source link

columns are getting improperly assigned to tables #22

Closed brianbroderick closed 3 months ago

brianbroderick commented 3 months ago

I've noticed that sometimes, columns are assigned to a table that belongs to another.

brianbroderick commented 3 months ago

This is now fixed.

We are assigning columns to a table without aliases when only one table is selected. This was happening at the end of the extract function, but we hit the end of this function quite often causing the other function to run too often. Instead, I've moved this to fire after the extract is completely done.