Spotfire submits fieldnames with table aliases consistently. This is fine except when injected into our QUERY parameter.
For example, consider the following query:
SELECT action_taken_name AS ACTIONTAKENNAME, purchaser_type_name FROM morgages_mapped m1 WHERE (QUERY('Commercial','fields=m1.purchaser_type_name')) AND (m1.state_name = 'Massachusetts')
Notice here how we refer to 'fields=m1.purchaser_type_name'. This is passed directly to query string, resulting in no hits i.e.
Discussed with @costin and we might want to either support aliases here or extract field names from the string. Noting the lack of support and for discussion.
Original comment by @gingerwizard:
Spotfire submits fieldnames with table aliases consistently. This is fine except when injected into our QUERY parameter.
For example, consider the following query:
SELECT action_taken_name AS ACTIONTAKENNAME, purchaser_type_name FROM morgages_mapped m1 WHERE (QUERY('Commercial','fields=m1.purchaser_type_name')) AND (m1.state_name = 'Massachusetts')
Notice here how we refer to
'fields=m1.purchaser_type_name'
. This is passed directly to query string, resulting in no hits i.e.Discussed with @costin and we might want to either support aliases here or extract field names from the string. Noting the lack of support and for discussion.