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

Cloud Spanner queries are not working #265

Closed
shashank-google opened this issue Jun 23, 2021 · 0 comments · Fixed by #394
Closed

Cloud Spanner queries are not working #265

shashank-google opened this issue Jun 23, 2021 · 0 comments · Fixed by #394
Assignees
Labels
priority: p0 Highest priority. Critical issue. Will be fixed prior to next release. Release Next release candidate type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@shashank-google
Copy link
Contributor

type: bug

Example command:
data-validation query --conn spanner-perf -q "select * from salaries limit 10"

Output:
[name: "emp_no"
type_ {
code: INT64
}
, name: "salary"
type_ {
code: INT64
}
, name: "from_date"
type_ {
code: DATE
}
, name: "to_date"
type_ {
code: DATE
}
]
Traceback (most recent call last):
File "/home/ext_agarwalsh_google_com/venv/bin/data-validation", line 11, in
load_entry_point('google-pso-data-validator', 'console_scripts', 'data-validation')()
File "/home/ext_agarwalsh_google_com/venv/src/google-pso-data-validator/data_validation/main.py", line 350, in main
print(run_raw_query_against_connection(args))
File "/home/ext_agarwalsh_google_com/venv/src/google-pso-data-validator/data_validation/main.py", line 248, in run_raw_query_against_connection
with client.raw_sql(args.query, results=True) as cur:
AttributeError: enter

@freedomofnet freedomofnet added Beta priority: p0 Highest priority. Critical issue. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jul 1, 2021
@nehanene15 nehanene15 added Release Next release candidate and removed Beta labels Jul 15, 2021
@ngdav ngdav linked a pull request Mar 18, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p0 Highest priority. Critical issue. Will be fixed prior to next release. Release Next release candidate type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
5 participants