Skip to content

Commit

Permalink
Add OrbiterLivyOperator (#40)
Browse files Browse the repository at this point in the history
* feat: LivyOperator

* chore: version bump
  • Loading branch information
fritz-astronomer authored Jan 10, 2025
1 parent 7d4f7e6 commit 951e494
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion orbiter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import re
from typing import Any, Tuple

__version__ = "1.4.0"
__version__ = "1.4.1"

version = __version__

Expand Down
16 changes: 16 additions & 0 deletions orbiter/objects/operators/livy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from orbiter.objects import ImportList, OrbiterRequirement
from orbiter.objects.task import OrbiterOperator, RenderAttributes


class OrbiterLivyOperator(OrbiterOperator):
imports: ImportList = [
OrbiterRequirement(
package="apache-airflow-providers-apache-livy",
module="airflow.providers.apache.livy.operators.livy",
names=["LivyOperator"],
)
]
operator: str = "LivyOperator"

# noinspection Pydantic
render_attributes: RenderAttributes = OrbiterOperator.render_attributes

0 comments on commit 951e494

Please sign in to comment.