-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a BallistaContext to ballista to allow for Remote or standalone (…
…#1100) * added a pycontext to ballista * added a pycontext to ballista * added a pycontext to ballista * updated python to have two static methods for creating a ballista context * updated python to have two static methods for creating a ballista context * updated python to have two static methods for creating a ballista context * updated python to have two static methods for creating a ballista context * updated python to have two static methods for creating a ballista context * updated python to have two static methods for creating a ballista context * updated python to have two static methods for creating a ballista context * updated python to have two static methods for creating a ballista context * updating the pyballista package to ballista * changing the packagaing naming convention from pyballista to ballista * changing the packagaing naming convention from pyballista to ballista * updated python to have two static methods for creating a ballista context * updated python to have two static methods for creating a ballista context * updated python to have two static methods for creating a ballista context * updated python to have two static methods for creating a ballista context * Updating BallistaContext and Config * Updating BallistaContext and Config * updated python to have two static methods for creating a ballista context * Updating BallistaContext and Config, calling it for the night, will complete tomorrow * Updating BallistaContext and Config, calling it for the night, will complete tomorrow * Adding config to ballista context * Adding config to ballista context * Adding config to ballista context * Adding config to ballista context * Updated Builder and Docs * Updated Builder and Docs * Updated Builder and Docs * Updated Builder and Docs * Updated Builder and Docs * Updated Builder and Docs --------- Co-authored-by: Trevor Barnes <[email protected]>
- Loading branch information
Showing
11 changed files
with
150 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from ballista import BallistaBuilder | ||
from datafusion.context import SessionContext | ||
|
||
# Ballista will initiate with an empty config | ||
# set config variables with `config` | ||
ctx: SessionContext = BallistaBuilder()\ | ||
.config("ballista.job.name", "example ballista")\ | ||
.config("ballista.shuffle.partitions", "16")\ | ||
.standalone() | ||
|
||
#ctx_remote: SessionContext = ballista.remote("remote_ip", 50050) | ||
|
||
# Select 1 to verify its working | ||
ctx.sql("SELECT 1").show() | ||
#ctx_remote.sql("SELECT 2").show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.