In "Suiyuan Food List", both melon and ginger are mentioned, and melon refers to pickled cucumber.
Gua Jiang is pickled cucumber + pickled ginger. In cooking, there is a dish called shredded fish with melon and ginger, which is a famous traditional dish in Shanghai.