Skip to content

Commit

Permalink
[Build] Add storage module dependency to Kernel examples
Browse files Browse the repository at this point in the history
## Description
Prep for delta-io#2770 PR
  • Loading branch information
vkorukanti authored Mar 21, 2024
1 parent 050e018 commit cb07092
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kernel/examples/run-kernel-examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ def clear_artifact_cache():
print("Clearing Delta Kernel artifacts from ivy2 and mvn cache")
delete_if_exists(os.path.expanduser("~/.ivy2/cache/io.delta.kernel"))
delete_if_exists(os.path.expanduser("~/.ivy2/local/io.delta.kernel"))
delete_if_exists(os.path.expanduser("~/.m2/repository/io/delta/kernel/"))
delete_if_exists(os.path.expanduser("~/.ivy2/cache/io.delta"))
delete_if_exists(os.path.expanduser("~/.ivy2/local/io.delta"))
delete_if_exists(os.path.expanduser("~/.m2/repository/io/delta/"))


def delete_if_exists(path):
Expand Down Expand Up @@ -163,7 +165,7 @@ def run_cmd(cmd, throw_on_error=True, env=None, stream_output=False, **kwargs):

if args.use_local:
with WorkingDirectory(project_root_dir):
run_cmd(["build/sbt", "kernelGroup/publishM2"], stream_output=True)
run_cmd(["build/sbt", "kernelGroup/publishM2", "storage/publishM2"], stream_output=True)

golden_file_dir = path.join(
examples_root_dir,
Expand Down
6 changes: 6 additions & 0 deletions kernel/examples/table-reader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ limitations under the License.-->
<version>${delta-kernel.version}</version>
</dependency>

<dependency>
<groupId>io.delta</groupId>
<artifactId>delta-storage</artifactId>
<version>${delta-kernel.version}</version>
</dependency>

<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client-runtime</artifactId>
Expand Down

0 comments on commit cb07092

Please sign in to comment.