CockroachDB is closer to Spanner. The globally distributed primitives that power their SQL layer which is F1.
I guess that TiDB is on layer above Cockroach.
Cockroach Dev here.
We're actively working on a SQL layer actually.
We really need to update our github readme to contain info about it. It's under active development and of course, it's inspired by F1.