 Recipes for sweet potato pie first appeared in printed cookbooks in the 18th century, where it was included with savory vegetable dishes.By the 19th century, sweet potato pie was more commonly classified as a dessert.One variation is the Hawaiian sweet potato haupia pie.