-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Right now AnnotatedSQL mangles column names during joins by appending "as table_name___column_name" to each column in generated SELECT statement, e.g.
CREATE VIEW nearest as SELECT locations._id as _id, locations.coslat as locations_coslat, locations.sinlat as locations_sinlat...
While occasionally useful and more mistake-proof, this prevents hardcoding column names in really complex statements. Instead the generator should check for duplicate names and rename columns only when necessary. For most purposes it should be enough to maintain a single global list of names and rename columns when any two tables have column with the same name. Otherwise just keep old names.
Hopefully, this won't not introduce any breakage, but just in case you can leave old behavior by default and make it toggleable with apt option.
Metadata
Metadata
Assignees
Labels
No labels