Skip to content

Commit

Permalink
Update the pyspark related binding object
Browse files Browse the repository at this point in the history
Signed-off-by: acezen <qiaozi.zwb@alibaba-inc.com>
  • Loading branch information
acezen committed Mar 28, 2024
1 parent 1836ce2 commit 812d4df
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyspark/graphar_pyspark/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def set_spark_session(self, spark_session: SparkSession) -> None:
self.ss = spark_session # Python SparkSession
self.sc = spark_session.sparkContext # Python SparkContext
self.jvm = spark_session._jvm # JVM
self.graphar = spark_session._jvm.com.alibaba.graphar # Alias to scala graphar
self.graphar = spark_session._jvm.org.apache.graphar # Alias to scala graphar
self.jsc = spark_session._jsc # Java SparkContext
self.jss = spark_session._jsparkSession # Java SparkSession

Expand Down
4 changes: 2 additions & 2 deletions pyspark/graphar_pyspark/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.

"""Bidnings to com.alibaba.graphar.graph."""
"""Bidnings to org.apache.graphar.graph."""

from __future__ import annotations

Expand Down Expand Up @@ -188,7 +188,7 @@ def write(
) -> None:
"""Write graph data in graphar format.
Note: for default parameters check com.alibaba.graphar.GeneralParams;
Note: for default parameters check org.apache.graphar.GeneralParams;
For this method None for any of arguments means that the default value will be used.
:param path: the directory to write.
Expand Down
2 changes: 1 addition & 1 deletion pyspark/graphar_pyspark/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# see the license for the specific language governing permissions and
# limitations under the license.

"""Bindings to com.alibaba.graphar info classes."""
"""Bindings to org.apache.graphar info classes."""

# because we are using type-hints, we need to define few custom TypeVar
# to describe returns of classmethods;
Expand Down
2 changes: 1 addition & 1 deletion pyspark/graphar_pyspark/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# see the license for the specific language governing permissions and
# limitations under the license.

"""Bidnings to com.alibaba.graphar.graph."""
"""Bidnings to org.apache.graphar.graph."""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion pyspark/graphar_pyspark/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# see the license for the specific language governing permissions and
# limitations under the license.

"""Bindings to com.alibaba.graphar.util."""
"""Bindings to org.apache.graphar.util."""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion pyspark/graphar_pyspark/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# see the license for the specific language governing permissions and
# limitations under the license.

"""Bindings to com.alibaba.graphar.writer."""
"""Bindings to org.apache.graphar.writer."""


from __future__ import annotations
Expand Down

0 comments on commit 812d4df

Please sign in to comment.