2022-06-14 13:42:30 +00:00
-- { echo }
2023-11-03 18:37:45 +00:00
with rhs as ( select * from remote ( ' 127.{1,2} ' , view ( select dummy d1 , dummy d2 from system . one ) ) ) select lhs . d2 from remote ( ' 127.{1,2} ' , view ( select dummy d1 , dummy d2 from system . one ) ) lhs global join rhs using ( d1 ) order by rhs . d2 settings allow_experimental_analyzer = 0 ; -- { serverError ALIAS_REQUIRED }
with rhs as ( select * from remote ( ' 127.{1,2} ' , view ( select dummy d1 , dummy d2 from system . one ) ) ) select lhs . d2 from remote ( ' 127.{1,2} ' , view ( select dummy d1 , dummy d2 from system . one ) ) lhs global join rhs using ( d1 ) order by rhs . d2 settings allow_experimental_analyzer = 1 ; -- It works with analyzer; rhs is an alias itself.
2022-06-14 13:42:30 +00:00
with rhs as ( select * from remote ( ' 127.{1,2} ' , view ( select dummy d1 , dummy d2 from system . one ) ) ) select lhs . d2 from remote ( ' 127.{1,2} ' , view ( select dummy d1 , dummy d2 from system . one ) ) lhs global join rhs using ( d1 ) order by rhs . d2 settings joined_subquery_requires_alias = 0 ;
with rhs_ as ( select * from remote ( ' 127.{1,2} ' , view ( select dummy d1 , dummy d2 from system . one ) ) ) select lhs . d2 from remote ( ' 127.{1,2} ' , view ( select dummy d1 , dummy d2 from system . one ) ) lhs global join rhs_ rhs using ( d1 ) order by rhs . d2 settings joined_subquery_requires_alias = 0 ;