Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Model/lib/dst/expression.dst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ prop=dataType
<sql>
<![CDATA[
SELECT DISTINCT profile_study_id AS internal, profile_set_name AS term,
decode(ps.name, '', '', ${decodeProfileSet} '${datasetDisplayName}') as display
CASE WHEN ps.name = '' THEN '' ELSE ${decodeProfileSet} '${datasetDisplayName}' END as display
FROM apidbtuning.profileType
WHERE dataset_name = '${datasetName}'
AND profile_set_name not in ( ${excludedProfileSetsList})
Expand Down Expand Up @@ -608,10 +608,10 @@ prop=dataType
<![CDATA[
SELECT protocol_app_node_id as internal,
CASE WHEN ('$$channel$$' ='channel1') THEN
decode(protocol_app_node_name, '', '', ${channelOnePctSampleDecode}
protocol_app_node_name)
ELSE decode(protocol_app_node_name, '', '', ${channelTwoPctSampleDecode}
protocol_app_node_name)
CASE WHEN protocol_app_node_name = '' THEN '' ELSE ${channelOnePctSampleDecode}
protocol_app_node_name END
ELSE CASE WHEN protocol_app_node_name = '' THEN '' ELSE ${channelTwoPctSampleDecode}
protocol_app_node_name END
END as term
FROM apidbtuning.ProfileSamples ps
WHERE ps.study_id = $$profileset_generic$$
Expand Down