Skip to content

Commit 2e9b8f7

Browse files
committed
fix: struct 타입 대문자화
1 parent fde7755 commit 2e9b8f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/hiveTypeRules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export const makeCompact = (text: string) => {
176176

177177
if (/^?S?T?R?U?C?T?<.*>$/i.test(noSpaceText)) {
178178
const nameTypePairs = tokenize(getNested(noSpaceText), ',').map(pair => tokenize(pair, ':').map(s => s.trim()));
179-
return `${noSpaceText.split('<', 1)[0]}<${nameTypePairs
179+
return `${noSpaceText.split('<', 1)[0].toUpperCase()}<${nameTypePairs
180180
.map(([colName, dataType]) => {
181181
let unBacktickedColName: string = colName;
182182
if (/^`.*`?$/.test(colName)) {

0 commit comments

Comments
 (0)