title: why adding a new id column with monotonically increasing id break after 352
body: <p>I am using pyspark 2.2.0. To add a new column of incrementing value.  I have used following code:</p>
  
  <pre><code>new_df = df.withColumn('Id', monotonically_increasing_id())
  </code></pre>
  
  <p>But it breaks after row number 352 like this:</p>
  
  <p><a href="https://i.stack.imgur.com/Go1kp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Go1kp.png" alt="screenshot of error"></a></p>
  
  <p>Any option to fix this ?</p>