Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Spark-sql case when problem

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

SELECT CASE (pmod (datediff (f0.`4168388 _ c0`, '1970-01-04'), 7) + 1) WHEN'1' THEN 'Sunday' WHEN'2' THEN 'Monday' WHEN'3' THEN 'Tuesday' WHEN'4' THEN 'Wednesday' WHEN'5' THEN 'Thursday' WHEN'6' THEN 'Friday' WHEN'7' THEN 'Saturday' ELSE 'Saturday' END AS dice 4168393 FROM rr f0 ORDER BY dome 4168393

In 2.0.1, case cannot be followed directly by (, if changed to

SELECT CASE pmod (datediff (f0.`4168388 _ _ c0`, '1970-01-04'), 7) + 1 WHEN'1' THEN 'Sunday' WHEN'2' THEN 'Monday' WHEN'3' THEN 'Tuesday' WHEN'4' THEN 'Wednesday' WHEN'5' THEN 'Thursday' WHEN'6' THEN 'Friday' WHEN'7' THEN 'Saturday' ELSE 'Saturday' Saturday 'END AS 4168393 FROM user_96300_14776217442944168389 f0 ORDER BY dice 4168393

You can run the

This problem does not exist in 1.5.2

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report