Hi, Liz, CollectLimit means `Take the first `limit` elements and collect them to a single partition.`
Thanks, Xiao 2016-10-23 5:21 GMT-07:00 Ran Bai <liz...@icloud.com>: > Hi all, > > I found the runtime for query with or without “LIMIT” keyword is the same. > We looked into it and found actually there is “GlobalLimit / LocalLimit” in > logical plan, however no relevant physical plan there. Is this a bug or > something else? Attached are the logical and physical plans when running > "SELECT * FROM seq LIMIT 1". > > > More specifically, We expected a early stop upon getting adequate results. > Thanks so much. > > Best, > Liz > > > > > --------------------------------------------------------------------- > To unsubscribe e-mail: dev-unsubscr...@spark.apache.org >