Ketones in urine?

Has anyone been told they have ketones in urine when it's tested for your apts? 
They said it's probably not drinking enough water but also could be limiting carbs too much or a sign of gestational diabetes. Did they go away if you had them and did you end up having GD? Waiting on results.