Fields from an aliased table can't be read into data.
Consider following query:
{{#get_db_data:db=bugs |from=heat=h,profiles=p |join on=h.assigned_to=p.userid |data=loginName=p.login_name,rate=count(*),heat=sum(h.heat) |group by=p.login_name }} {| class="prettytable sortable" width="100%" ! Assigned to ! Count ! Sum {{#for_external_table:<nowiki/> {{!}}- style="background-color:#EEEEEE;" {{!}} {{{loginName}}} {{!}} {{{rate}}} {{!}} {{{heat}}} }} |} {{#clear_external_data:}}
The resulting table will hold empty entries for column loginName. If the assignment is changed to |data=loginName=login_name, the column is filled correctly.
While this is a doable workaround for some queries, this fails, if two tables containing identical column names need to be joined:
- Giving an alias in data will result in an empty column
- Removing the alias will fail the query due to ambiguous names
I've noticed this behavior, while migrating a MediaWiki 1.26 to 1.36. In 1.26 the queries can retrieve the data from the aliased fields. The breaking changes seem to have been introduced with REL1_31.