title: How can find size of each Row in Apache spark sql dataframe and discrad the rows having size more than a threshold size in Kilobyte
body: <p>I am new in apache spark sql in scala.</p>
  
  <p>How can find size of each Row in Apache spark sql dataframe and discrad the rows having size more than a threshold size in Kilobyte. I am looking for scala solution.</p>