Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,21 @@
</arguments>
</configuration>
</execution>
<execution>
<!-- SPARK-49282: connect SparkSession needs classic sql/core types (ExperimentalMethods, SharedState, ...) -->
<id>copy-connect-client-classic-sql-jar</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>cp</executable>
<arguments>
<argument>${basedir}/../sql/core/target/spark-sql_${scala.binary.version}-${project.version}.jar</argument>
<argument>${basedir}/target/scala-${scala.binary.version}/jars/connect-repl</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down
5 changes: 1 addition & 4 deletions python/pyspark/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,15 @@
try:
if os.environ.get("KYUUBI_AUTH"):
from kyuubi.spark_connect import KyuubiSessionBuilder
from pyspark.sql.connect.session import SparkSession as ConnectSparkSession
_kyuubi_builder = KyuubiSessionBuilder(
os.environ["SPARK_REMOTE"],
auth=os.environ.get("KYUUBI_AUTH", "kerberos"),
username=os.environ.get("KYUUBI_USERNAME"),
password=os.environ.get("KYUUBI_PASSWORD"))
spark = ConnectSparkSession(connection=_kyuubi_builder)
spark = _kyuubi_builder.getOrCreate()
else:
# Creates pyspark.sql.connect.SparkSession.
spark = SparkSession.builder.getOrCreate()
# Creates pyspark.sql.connect.SparkSession.
spark = SparkSession.builder.getOrCreate()

from pyspark.sql.connect.shell import PROGRESS_BAR_ENABLED

Expand Down
Loading