Skip to content
This repository has been archived by the owner on Sep 10, 2020. It is now read-only.

Commit

Permalink
Returning to using number in master feature view join
Browse files Browse the repository at this point in the history
  • Loading branch information
redshiftzero committed Oct 13, 2016
1 parent e07c2eb commit 87a0dd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fpsd/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,9 @@ def create_master_feature_view(self, feature_table_names):
prefix = 't{}.'.format(table_num)
prefixed_columns = [prefix + s for s in master_features[table_name]]
columns_to_select = columns_to_select + ', ' + ', '.join(prefixed_columns)
join_query = ("LEFT OUTER JOIN {name} t{name} "
"ON foo.exampleid = t{name}.exampleid ").format(name=table_name)
join_query = ("LEFT OUTER JOIN {name} t{num} "
"ON foo.exampleid = t{num}.exampleid ").format(name=table_name,
num=table_num)
full_join_query += join_query

drop_view = "DROP VIEW IF EXISTS features.frontpage_features; "
Expand Down

0 comments on commit 87a0dd0

Please sign in to comment.