clarkyu2016 / sql-beautify

VS Code extension that beautifies SQL(HQL).
MIT License
60 stars 21 forks source link

AS后未对齐 #37

Closed orangeshinee closed 2 years ago

orangeshinee commented 2 years ago

格式化之后as没有对齐了,很奇怪

格式化之前

-- test
SELECT  date_t
       ,id
       ,json_extract_scalar(feils,'$.PromoId')               AS PromoId
       ,split_part(json_extract_scalar(feils,'$.url'),'_',1) AS prefix
       ,split_part(json_extract_scalar(feils,'$.url'),'_',2) AS types
       ,split_part(json_extract_scalar(feils,'$.url'),'_',3) AS feature
       ,'xxxxx'                                              AS click_type
FROM table_c
WHERE dt = '$date$' 

格式化之后

-- test
SELECT  date_t
       ,id
       ,json_extract_scalar(feils,'$.PromoId')                           AS PromoId
       ,split_part(json_extract_scalar(feils,'$.url'),'_',1) AS prefix
       ,split_part(json_extract_scalar(feils,'$.url'),'_',2) AS types
       ,split_part(json_extract_scalar(feils,'$.url'),'_',3) AS feature
       ,'xxxxx'                                                      AS click_type
FROM table_c
WHERE dt = '$date$' 
clarkyu2016 commented 2 years ago

0.3.12已经修复~感谢反馈!