[Refactor][Connector] Refactor connector dialect (#501) (#502)