Skip to content

Replace Oracle decode() with CASE WHEN in expression.dst#182

Open
jbrestel wants to merge 1 commit intomasterfrom
decode-expression-attributes
Open

Replace Oracle decode() with CASE WHEN in expression.dst#182
jbrestel wants to merge 1 commit intomasterfrom
decode-expression-attributes

Conversation

@jbrestel
Copy link
Copy Markdown
Member

Summary

  • Converts 3 Oracle-specific decode() calls in expression.dst to ANSI-standard CASE WHEN expressions
  • Affects templates expressionPctProfileSetParamQuery and expressionPctSamplesParamQueryDirect
  • No logic change — decode(col, '', '', default) maps directly to CASE WHEN col = '' THEN '' ELSE default END

Test Plan

  • Verify injected WDK param queries render correctly for datasets using ExpressionTwoChannelDirectComparison and ExpressionOneChannelAndReferenceDesign
  • Confirm expression profile set and percentile sample dropdowns populate as expected on a Postgres instance

Convert three Oracle-specific decode() calls in expressionPctProfileSetParamQuery
and expressionPctSamplesParamQueryDirect templates to ANSI-standard CASE WHEN
expressions for Postgres compatibility.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@steve-fischer-200 steve-fischer-200 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as is, doesn't handle the case where we have list values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants