Can’t create YCQL index with WHERE clause in YugabyteDB - yugabytedb

[Question posted by a user on YugabyteDB Community Slack]
Can somebody explain to me how to work with indexes metadata in YCQL?
I found this article: https://docs.yugabyte.com/preview/api/ycql/ddl_create_index/.
And I can't create example INDEX with WHERE condition with this exception:
com.datastax.driver.core.exceptions.SyntaxError: Feature Not Supported
CREATE INDEX idx ON orders (warehouse_id) WHERE warehouse_id < 100
^^^^^^
(ql error -14)
Server: YCQL 3.9.0
Driver: Yugabyte CQL Java Driver 3.8.2
YugabyteDB 2.4.4.0.

You need to upgrade to 2.6.x at a minimum to have that feature. After you upgrade you'll be able to create the index.

Related

Different versions of read-replica and primary-cluster in YugabyteDB

[Question posted by a user on YugabyteDB Community Slack]
Is it possible to have the primary data cluster and read replica be at different versions?
primary data # 2.1 and replicate cluster # 2.8
Ideally, no. During software upgrades, temporarily different nodes can be on different releases. But in a steady state, the read-replica nodes should be the same version as the primary cluster.
With xCluster, where the two clusters are really independent clusters linked with an async replication channel, they can be on different releases for extended periods of time.

Using PostgreSQL Spark-connector in YugabyteDB

[Question posted by a user on YugabyteDB Community Slack]
Is it possible to work with the Postgres tables using Spark-connector? Write and read to a Yugabyte Postgres?
Yes, it is possible to read and write in YugabyteDB through the JDBC Spark connector. You can follow the Spark documentation as is.
Because YugabyteDB is PostgreSQL-compliant most PostgreSQL connectors should work just fine.

Setting PostgreSQL options in YugabyteDB YSQL as g-flag

[Question posted by a user on YugabyteDB Community Slack]
I’m trying to set enable_nestloop permanently as a g-flag. How can I set these PostgreSQL config options?
PostgreSQL parameters can be set with the [--ysql_pg_conf][1] flag as comma separated like ysql_pg_conf=enable_nestloop=false

Set wal_level = logical instead of replica in YugabyteDB?

[Question posted by a user on YugabyteDB Community Slack]
Is there a way to set wal_level = logical instead of replica in YugabyteDB? I’m looking to implement CDC so I can synchronize other systems with the changes.
Note that YugabyteDB doesn’t reuse the PostgreSQL storage engine & replication mechanism, but has built its own. And it doesn’t support setting wal_level=logical.
Currently, CDC support is in the works https://github.com/yugabyte/yugabyte-db/issues/9019.

How are custom types stored in YugabyteDB YCQL?

[Question posted by a user on YugabyteDB Community Slack]
How are custom types CREATE TYPE .. UDT stored in rocksdb underneath ?
They are stored in rocksdb as a serialized map or struct.

Resources