Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: case expression should not have double quotes #12562

Merged
merged 1 commit into from
Jan 15, 2021
Merged
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
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