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
Right now, dbt offers native support for any cross-db macros, including split_part. The implementation in dbt-spark right now is fairly complex, given that there's not native support for split_part in spark. This gets especially complex for negative arguments to the function, which relies on some heavy string parsing to properly translate a negative arg into the appropriate index in the array. Given that databricks natively supports this function including negative part_numbers, it may be a good idea to implement here to avoid this complex logic.
Describe alternatives you've considered
Do nothing, inherit from dbt-spark
Additional context
Please include any other relevant context here.
Who will this benefit?
package maintainers like me!
Are you interested in contributing this feature?
For sure
The text was updated successfully, but these errors were encountered:
dbt-labs/dbt-spark #689 added support for negative part_number argument to dbt-spark. Like @dave-connors-3 mentioned, dbt-databricks will just inherit this logic, so it is not strictly necessary to override it.
But providing a native implementation might be as simple as copy-pasting the logic from the default implementation:
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue.
Describe the feature
Right now, dbt offers native support for any cross-db macros, including split_part. The implementation in dbt-spark right now is fairly complex, given that there's not native support for
split_part
in spark. This gets especially complex for negative arguments to the function, which relies on some heavy string parsing to properly translate a negative arg into the appropriate index in the array. Given that databricks natively supports this function including negative part_numbers, it may be a good idea to implement here to avoid this complex logic.Describe alternatives you've considered
Do nothing, inherit from dbt-spark
Additional context
Please include any other relevant context here.
Who will this benefit?
package maintainers like me!
Are you interested in contributing this feature?
For sure
The text was updated successfully, but these errors were encountered: