Skip to content

Commit

Permalink
fix: case expression should not have double quotes (#12562)
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida authored and villebro committed Jan 16, 2021
1 parent 147f750 commit c38a5fc
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions superset/examples/configs/datasets/examples/FCC_2018_Survey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ columns:
type: STRING
groupby: true
filterable: true
expression: "CASE \n WHEN school_degree = \"no high school (secondary school)\"\
\ THEN \"A. No high school (secondary school)\"\n WHEN school_degree = \"some\
\ high school\" THEN \"B. Some high school\"\n WHEN school_degree = \"high school\
\ diploma or equivalent (GED)\" THEN \"C. High school diploma or equivalent (GED)\"\
\n WHEN school_degree = \"associate's degree\" THEN \"D. Associate's degree\"\
\n WHEN school_degree = \"some college credit, no degree\" THEN \"E. Some college\
\ credit, no degree\"\n WHEN school_degree = \"bachelor's degree\" THEN \"F.\
\ Bachelor's degree\"\n WHEN school_degree = \"trade, technical, or vocational\
\ training\" THEN \"G. Trade, technical, or vocational training\"\n WHEN school_degree\
\ = \"master's degree (non-professional)\" THEN \"H. Master's degree (non-professional)\"\
\n WHEN school_degree = \"Ph.D.\" THEN \"I. Ph.D.\"\n WHEN school_degree = \"\
professional degree (MBA, MD, JD, etc.)\" THEN \"J. Professional degree (MBA,\
\ MD, JD, etc.)\"\nEND"
expression: "CASE \n WHEN school_degree = 'no high school (secondary school)'\
\ THEN 'A. No high school (secondary school)'\n WHEN school_degree = 'some\
\ high school' THEN 'B. Some high school'\n WHEN school_degree = 'high school\
\ diploma or equivalent (GED)' THEN 'C. High school diploma or equivalent (GED)'\
\n WHEN school_degree = 'associate''s degree' THEN 'D. Associate''s degree'\
\n WHEN school_degree = 'some college credit, no degree' THEN 'E. Some college\
\ credit, no degree'\n WHEN school_degree = 'bachelor''s degree' THEN 'F.\
\ Bachelor''s degree'\n WHEN school_degree = 'trade, technical, or vocational\
\ training' THEN 'G. Trade, technical, or vocational training'\n WHEN school_degree\
\ = 'master''s degree (non-professional)' THEN 'H. Master''s degree (non-professional)'\
\n WHEN school_degree = 'Ph.D.' THEN 'I. Ph.D.'\n WHEN school_degree = '\
professional degree (MBA, MD, JD, etc.)' THEN 'J. Professional degree (MBA,\
\ MD, JD, etc.)'\nEND"
description: Highest Degree Earned
python_date_format: null
- column_name: job_location_preference
Expand Down

0 comments on commit c38a5fc

Please sign in to comment.