switch for 1MHZ sine wave
I'd consider using two switches - one in series to the load resistor from the source and then another across the load resistor. When one switch is activated the other one is off and vice versa.