Closed justinmclean closed 3 months ago
In the playground, we already created a pg catalog. And the pg catalog has the hr schema.
Do we still need to improve this code? @qqqttt123
Do we still need to improve this code? @qqqttt123
Justin suggests us to use postgres
as the name of default database. I use db
now. For me, it's ok without modification. WDYT?
Most Postgres servers have three databases defined by default: template0 , template1 and postgres. Using a different one is one more thing that can go wrong when someone is trying to use Gravitrino for the first time. That it needs to be defined in two places when creating the catalogue further complicates this.
@qqqttt123 please check this issue.
I think that we don't need to fix this issue. We can close this.
Describe what's wrong
If you connect to the local playground database with dbeaver (as the postgres user), you see only the public schema. You can create schemas via SQL including a hr schema.
However there seems to be a hidden hr schema, it doesn't show in Trino, but this query returns two rows: select * from "metalake_demo.catalog_pg1".hr.employees
The content of this is different from the user-created hr schema in Postgres which contains 100 rows.
The catalog looks correct and other information looks correct:
My guess is the two hr schemas are in different databases (db and postgres), however, only the postgres database is shown in dbeaver. Given the default database is usually called postgres it may be best to use that in the playground.
Error message and/or stacktrace
No errror messages.
How to reproduce
Additional context
No response