Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Why !primarykeys does not work in sqlline-thin.py

avatar
New Member

I started a apache phoenix query server, phonenix version is apache-phoenix-5.0.0-HBase-2.0-bin

All other functions work well in the cmd line of sqlline-thin.py. But when I tried to get the primary key of a table, its just listed nothing. 

0: jdbc:phoenix:thin:url=http://localhost:876> !primarykeys FN2.TESTYL2
+------------+--------------+-------------+--------------+----------+----------+
| TABLE_CAT | TABLE_SCHEM | TABLE_NAME | COLUMN_NAME | KEY_SEQ | PK_NAME |
+------------+--------------+-------------+--------------+----------+----------+
+------------+--------------+-------------+--------------+----------+----------+

 

when I tried in phoenix cmd line sqlline.py, it works well.

do you know why the thin phoenix query server cannot find the primary key?

 

thanks

Yang

1 ACCEPTED SOLUTION

avatar
Expert Contributor

Hi Yang,

 

I would suggest you to open a support ticket for this one.

 

Regards,

Ariel Q.

View solution in original post

1 REPLY 1

avatar
Expert Contributor

Hi Yang,

 

I would suggest you to open a support ticket for this one.

 

Regards,

Ariel Q.