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

404 on select * from table but not describe table #22

Open
dah33 opened this issue Dec 5, 2019 · 3 comments
Open

404 on select * from table but not describe table #22

dah33 opened this issue Dec 5, 2019 · 3 comments

Comments

@dah33
Copy link

dah33 commented Dec 5, 2019

This is on Databricks build 6.1 (includes Apache Spark 2.4.4, Scala 2.11):

CREATE TABLE tmp_weekly
USING com.github.potix2.spark.google.spreadsheets
OPTIONS (
    path "sheet_identifier/Weekly",
    serviceAccountId "[email protected]",
    credentialPath "/dbfs/FileStore/credentials/blah.p12"
)

The CREATE is fine, as is:

> describe tmp_weekly
col_name	data_type	comment
my_col1	string	null
my_col2	string	null

But select fails:

> select * from tmp_weekly limit 1

Error in SQL statement: GoogleJsonResponseException: 404 Not Found
{
  "code" : 404,
  "errors" : [ {
    "domain" : "global",
    "message" : "Requested entity was not found.",
    "reason" : "notFound"
  } ],
  "message" : "Requested entity was not found.",
  "status" : "NOT_FOUND"
}

I have installed com.github.potix2:spark-google-spreadsheets_2.11:0.6.2 via Maven.

Update: I reproduced on 0.6.3.

@tadas-subonis
Copy link

@dah33 Have you figured out how to solve this one? I am facing the same problem

@dah33
Copy link
Author

dah33 commented Jun 7, 2021

Unfortunately not, and I'm no longer working for that client.

@LucaXD-china
Copy link

My way is to use CREATE TEMPORARY VIEW to get data and write to another normal hive table.

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

3 participants