-
Notifications
You must be signed in to change notification settings - Fork 119
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
Use show table extended with table name list for get_catalog. #237
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
except dbt.exceptions.RuntimeException as e: | ||
errmsg = getattr(e, "msg", "") | ||
if ( | ||
"[SCHEMA_NOT_FOUND]" in errmsg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is an error code in the error message, will we get the error message details as well ("Database ... not found")?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error message was changed:
[SCHEMA_NOT_FOUND] The schema <schemaName> cannot be found. Verify the spelling and correctness of the schema and catalog.
If you did not qualify the name with a catalog, verify the current_schema() output, or qualify the name with the correct catalog.
To tolerate the error on drop use DROP SCHEMA IF EXISTS.
|
||
from dbt.adapters.spark.column import SparkColumn | ||
|
||
|
||
@dataclass | ||
class DatabricksColumn(SparkColumn): | ||
TYPE_LABELS: ClassVar[Dict[str, str]] = { | ||
"LONG": "BIGINT", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a port of dbt-labs/dbt-spark#358.
Thanks! merging. |
### Description Uses `show table extended` with table name list for `get_catalog`. - Running `describe table extended` for all tables could be slower than `show table extended` with table name list. - Statistics that will appear in the generated docs are not included in `describe table extended`.
Description
Uses
show table extended
with table name list forget_catalog
.describe table extended
for all tables could be slower thanshow table extended
with table name list.describe table extended
.