You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With dbt-spark==0.15.3 and dbt==0.15.3, a user in slack reports a couple of errors:
no support for /* ... */ style comments.
when query-comment: none is set to avoid that, an error about not enough values to unpack (expected 4, got 1)
that's caused by the show table extended ... command only returning one column.
I don't know when spark introduced block comments (2.0 at the latest), but I'm pretty sure show table extended having 4 columns dates to spark 2.2 (around this PR). We should just detect that we're at least above that and bail out if we aren't. I don't think it's unreasonable to require 2.2 as a minimum version, but I'd be very happy to go even higher.
Edit: upon further thought, we should also detect when show table extended ... returns a number of columns that's not 4, and error about it in a better way than tuple-unpacking errors. Alternatively we could access the columns by name, and give a decent error if the column name doesn't exist.
The text was updated successfully, but these errors were encountered:
With
dbt-spark==0.15.3
anddbt==0.15.3
, a user in slack reports a couple of errors:/* ... */
style comments.query-comment: none
is set to avoid that, an error aboutnot enough values to unpack (expected 4, got 1)
show table extended ...
command only returning one column.I don't know when spark introduced block comments (2.0 at the latest), but I'm pretty sure
show table extended
having 4 columns dates to spark 2.2 (around this PR). We should just detect that we're at least above that and bail out if we aren't. I don't think it's unreasonable to require 2.2 as a minimum version, but I'd be very happy to go even higher.Edit: upon further thought, we should also detect when
show table extended ...
returns a number of columns that's not 4, and error about it in a better way than tuple-unpacking errors. Alternatively we could access the columns by name, and give a decent error if the column name doesn't exist.The text was updated successfully, but these errors were encountered: