It sounds like he's well aware of the implications and his obligations:
Asked later if he’s concerned about how participating in the trial will affect his White House bid, Sanders responded, “Yeah, I am.”
“I would rather be in Iowa today. There’s a caucus there in 2 1/2 weeks. I’d rather be in New Hampshire and Nevada and so forth. But I swore a constitutional oath as a United States senator to do my job and I’m here to do my job,” he said.