Hi, Currently, no. spark cannot preserve the order of input data from jdbc. If you want to have the ordered ids, you need to sort them explicitly.
// maropu On Mon, Jun 20, 2016 at 7:41 PM, Ashok Kumar <[email protected]> wrote: > Hi, > > I have a SQL server table with 500,000,000 rows with primary key (unique > clustered index) on ID column > > If I load it through JDBC into a DataFrame and register it > via registerTempTable will the data will be in the order of ID in tempTable? > > Thanks > -- --- Takeshi Yamamuro
