Github user iyerr3 commented on a diff in the pull request: https://github.com/apache/incubator-madlib/pull/65#discussion_r75784595 --- Diff: src/ports/postgres/modules/utilities/pivot.py_in --- @@ -234,30 +235,46 @@ def pivot(schema_madlib, source_table, out_table, index, pivot_cols, dict_counter += 1 # Collecting the whole sql query # Please refer to the earlier comment for a sample output - pivot_str = ("{fill_str_begin}" - "{agg} (CASE WHEN {pivot_begin} THEN {pval} END) " - "{fill_str_end} AS {pivot_end}". - format(fill_str_begin=fill_str_begin, + + # Create the masked set + pivot_str_from = ("(CASE WHEN {pivot_begin} THEN {pval} END) " + "AS {pivot_end}". + format(fill_str_begin=fill_str_begin, + fill_str_end=fill_str_end, --- End diff -- We don't need the additional format specifiers --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---