How does one do a SQL select over multiple partitions?

前端 未结 2 496
孤街浪徒
孤街浪徒 2021-02-13 14:48

Is there a more efficient way than:

select * from transactions partition( partition1 ) 
union all 
select * from transactions partition( partition2 ) 
union all          


        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-13 15:05

    Can you provide additional context? What are your predicates? What makes you think that you need to explicitly tell the optimizer to go against multiple partitions. You may have the wrong partition key in use, for example.

提交回复
热议问题