We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 644fbd4 commit 907945aCopy full SHA for 907945a
rust/cubesqlplanner/cubesqlplanner/src/planner/sql_templates/plan.rs
@@ -146,8 +146,17 @@ impl PlanSqlTemplates {
146
Boundary::DIGIT_UPPER,
147
Boundary::ACRONYM,
148
])
149
- .to_case(Case::Snake)
150
- .replace(".", "__");
+ .to_case(Case::Snake);
+
151
+ // For strange reasons, the javascript snake caser used in cube
152
+ // changes first UPPERCASE letter to "_lowercase", prepending "_"
153
+ // This is weird, but to be compatible we have to add it too.
154
+ if let Some(fl) = name.chars().next() {
155
+ if fl.is_uppercase() {
156
+ return format!("_{}", res);
157
+ }
158
159
160
res
161
}
162
0 commit comments