To reproduce:
create one transformation feed using the Visual query
create another transformation feed using the query from the first, and use the EDIT SQL functionality
check the Lineage difference between the 2 feeds. The later feed only contains the feed and target table, but no source(s)
Please check attachements.
NiFi 1.2