# Is token(partition) aware policy supported by gocql driver?

**URL:** https://forum.yugabyte.com/t/is-token-partition-aware-policy-supported-by-gocql-driver/1460
**Category:** Design Discussions
**Created:** [February 19, 2022, 4:33pm UTC](https://forum.yugabyte.com/t/is-token-partition-aware-policy-supported-by-gocql-driver/1460 "2022-02-19T16:33:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sham\_yuga](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@sham\_yuga](https://forum.yugabyte.com/u/sham_yuga)
#### Post date: [February 19, 2022, 4:33pm UTC](https://forum.yugabyte.com/t/is-token-partition-aware-policy-supported-by-gocql-driver/1460/1 "2022-02-19T16:33:53Z")

</div>

We are currently using driver:  
`https://github.com/yugabyte/gocql`  
of version `gocql@v0.0.0-20200602185649-ef3952a45ff4`

1. 

Documentation says:  
token aware policy feature is available: `https://pkg.go.dev/github.com/yugabyte/gocql#hdr-Data_center_awareness_and_query_routing`

1. 

Implementation is also available in master branch: `https://github.com/yugabyte/gocql/blob/master/policies.go#L345`

+++

But there is a **little confusion** because, Github issue still exists on this feature(token aware policy): `https://github.com/yugabyte/yugabyte-db/issues/11376`

1. Does [gocql driver](https://github.com/yugabyte/gocql/blob/master/policies.go#L345) support token aware routing of queries?

2. if yes, Which version of gocql needs to be used?

---

<div class="post-metadata">

### Author: ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)
#### Post date: [February 22, 2022, 1:08pm UTC](https://forum.yugabyte.com/t/is-token-partition-aware-policy-supported-by-gocql-driver/1460/2 "2022-02-22T13:08:12Z")

</div>

Please don’t open the same issue in several places. Moving to [Why "local reads" & "local writes" metrics does not exist with YSQL? - #6 by dorian\_yugabyte](https://forum.yugabyte.com/t/why-local-reads-local-writes-metrics-does-not-exist-with-ysql/1457/6)
