Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

describe_table does not work #152

Closed
stringkm opened this issue Aug 6, 2018 · 16 comments
Closed

describe_table does not work #152

stringkm opened this issue Aug 6, 2018 · 16 comments
Assignees

Comments

@stringkm
Copy link

stringkm commented Aug 6, 2018

My describe_table command returns "Table not found." in des-sci on easyaccess 1.4.3. find_tables and SQL select statements work for a given table. I have also tried refreshing the metadata and putting in the table owner like this describe_table owner.table_name. Unfortunately, none of these seems to do the trick. Thank you in advance for checking into this!

@kadrlica
Copy link
Collaborator

kadrlica commented Aug 6, 2018

Which table are you trying to describe?

@stringkm
Copy link
Author

stringkm commented Aug 6, 2018

It hasn't been working for pretty much any table. But here's a few I've tried:
image
It may be an issue related to my account. I'm not sure.

@kadrlica
Copy link
Collaborator

kadrlica commented Aug 6, 2018

Hmmm, I just tried the first one Y3A2_MOF and got the full table information. What version of easyaccess are you using?

@stringkm
Copy link
Author

stringkm commented Aug 6, 2018

I'm using version 1.4.3 on Ubuntu 14.04.

@kadrlica
Copy link
Collaborator

kadrlica commented Aug 6, 2018

I just tried with 1.4.3 on SL6. Any ideas @mgckind?

@mgckind
Copy link
Owner

mgckind commented Aug 7, 2018

Is not the first time I've heard about this weird issue, but I haven't been able to reproduce it on any of my machines unfortunately. My guess is that there is an error throwing which make it look like there is no description. is not on easyaccess side, not Oracle. I'll take a look

@mgckind
Copy link
Owner

mgckind commented Aug 7, 2018

@stringkm what version of cx_Oracle are you using?
python -c "import cx_Oracle; print(cx_Oracle.__version__)"

@stringkm
Copy link
Author

stringkm commented Aug 7, 2018

Hi Matias! I have version 5.3.

@mgckind
Copy link
Owner

mgckind commented Aug 7, 2018

@stringkm Can you try these commands please? (I'm trying to at least find the error)

import easyaccess as ea
con=ea.connect()
qcom = "select comments from all_tab_comments atc where atc.table_name = 'Y3_GOLD_2_2'"
comment_table = con.query_results(qcom)[0][0]

@stringkm
Copy link
Author

stringkm commented Aug 7, 2018

Here's what I got.

image

@mgckind
Copy link
Owner

mgckind commented Aug 7, 2018

Thanks, so that's the issue. Now, it's a weird error. I'll dig up bit more.

@stringkm
Copy link
Author

stringkm commented Aug 7, 2018

Thanks Matias!

@mgckind mgckind assigned mgckind and unassigned mgckind Apr 26, 2019
@mgckind
Copy link
Owner

mgckind commented Apr 26, 2019

Maybe @madamow can help?

@madamow
Copy link
Collaborator

madamow commented May 2, 2019

@stringkm could you check if this issue is gone after change in prefetch? Just to be sure.

@stringkm
Copy link
Author

stringkm commented May 2, 2019

Describe_table runs without error. So glad it is working again! Thank you!

@madamow madamow closed this as completed May 2, 2019
@mgckind
Copy link
Owner

mgckind commented May 2, 2019

are you kidding me? I completely ruled out that option since the describe table isn't returning large number of rows.... I usually recommend changing this parameter for getting a good number of rows in a normal query... still is a mistery the memory leak, but this is good for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants