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

Getting TABLE_OR_VIEW_NOT_FOUND when running spark.table("demo.rpc.pizzas") #1

Open
srahimeen opened this issue Apr 11, 2024 · 0 comments

Comments

@srahimeen
Copy link

srahimeen commented Apr 11, 2024

I'm following the instructions in the readme and am stuck on Step 8.

When I run df = spark.table("demo.rpc.pizzas") I get the following error:

>>> df = spark.table("demo.rpc.pizzas")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/spark/python/pyspark/sql/session.py", line 1667, in table
    return DataFrame(self._jsparkSession.table(tableName), self)
  File "/opt/spark/python/lib/py4j-0.10.9.7-src.zip/py4j/java_gateway.py", line 1322, in __call__
  File "/opt/spark/python/pyspark/errors/exceptions/captured.py", line 185, in deco
    raise converted from None
pyspark.errors.exceptions.captured.AnalysisException: [TABLE_OR_VIEW_NOT_FOUND] The table or view `demo`.`rpc`.`pizzas` cannot be found. Verify the spelling and correctness of the schema and catalog.
If you did not qualify the name with a schema, verify the current_schema() output, or qualify the name with the correct schema and catalog.
To tolerate the error on drop use DROP VIEW IF EXISTS or DROP TABLE IF EXISTS.;
'UnresolvedRelation [demo, rpc, pizzas], [], false

Is there a step missing in the demo where it was supposed to create the catalog and the 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

1 participant