There are only three unique notes in a Gmajor chord (G,B and D), this G arpeggio form includes two octaves plus an additional root. (G,B,D,G,B,D,G)

These two diagrams are of the same thing, notated differently.