Skip to content

[Spark] Make deltaRestApi.enabled default to true#6951

Open
yili-db wants to merge 5 commits into
delta-io:masterfrom
yili-db:stack/delta_api_default
Open

[Spark] Make deltaRestApi.enabled default to true#6951
yili-db wants to merge 5 commits into
delta-io:masterfrom
yili-db:stack/delta_api_default

Conversation

@yili-db
Copy link
Copy Markdown
Collaborator

@yili-db yili-db commented Jun 3, 2026

🥞 Stacked PR

Use this link to review incremental changes.


Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

[Spark] Make deltaRestApi.enabled default to true

How was this patch tested?

CI

Does this PR introduce any user-facing changes?

No

@yili-db yili-db force-pushed the stack/delta_api_default branch 3 times, most recently from 0fabe0b to 9823770 Compare June 4, 2026 07:08
@yili-db yili-db changed the title temp [Spark] Make deltaRestApi.enabled default to true Jun 4, 2026
@yili-db yili-db marked this pull request as ready for review June 4, 2026 07:09
@yili-db yili-db requested review from openinx and tdas as code owners June 4, 2026 07:09
// case-insensitive so defaults don't create duplicate keys.
val merged = new java.util.HashMap[String, String](options.asCaseSensitiveMap())
Seq(
UCTokenBasedRestClientFactory.DELTA_REST_API_ENABLED_KEY -> "true",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer needed as the down stream will treat absent as true anyway.

@yili-db yili-db force-pushed the stack/delta_api_default branch 6 times, most recently from ebc71b3 to cb37c11 Compare June 4, 2026 23:02
@yili-db yili-db closed this Jun 4, 2026
@yili-db yili-db reopened this Jun 4, 2026
@yili-db yili-db force-pushed the stack/delta_api_default branch from cb37c11 to 6f2ba62 Compare June 4, 2026 23:30
Copy link
Copy Markdown
Collaborator

@TimothyW553 TimothyW553 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. mechanical change -- simple.

@yili-db yili-db force-pushed the stack/delta_api_default branch 2 times, most recently from f667dd6 to 035d3c1 Compare June 5, 2026 04:41
@yili-db yili-db requested a review from TimothyW553 June 5, 2026 04:42
@yili-db
Copy link
Copy Markdown
Collaborator Author

yili-db commented Jun 5, 2026

I have updated the way deltaCatalogClient is initialized. The initialization has to be deferred now because it actually needs to check isUnityCatalog

@yili-db yili-db force-pushed the stack/delta_api_default branch 2 times, most recently from f0fa6f6 to ac5ef5e Compare June 5, 2026 07:17
Comment thread examples/scala/build.sbt Outdated
getSupportIceberg.value),
libraryDependencies ++= Seq(
"io.unitycatalog" %% "unitycatalog-spark" % unityCatalogVersion excludeAll(
"io.unitycatalog" %% s"unitycatalog-spark${getSparkPackageSuffix.value}" % unityCatalogVersion excludeAll(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Locally SPARK_PACKAGE_SUFFIX is empty so this requests unitycatalog-spark_2.13 while the script publishes unitycatalog-spark_4.1_2.13, so a standalone examples/scala build cannot resolve it. Could we default the suffix to _4.1 to match the script?

I ran sbt update on this PR head with the env unset and it failed on unitycatalog-spark_2.13:0.5.0-SNAPSHOT-9196fa4 (Not found). The script's artifact name resolves to unitycatalog-spark_4.1_2.13, and CI is unaffected since it sets the env.

@yili-db yili-db force-pushed the stack/delta_api_default branch from 3a8b99f to 7b770c7 Compare June 5, 2026 23:16
yili-db added 4 commits June 5, 2026 22:21
Signed-off-by: Yi Li <yi.li@databricks.com>
Signed-off-by: Yi Li <yi.li@databricks.com>
Signed-off-by: Yi Li <yi.li@databricks.com>
Signed-off-by: Yi Li <yi.li@databricks.com>
@yili-db yili-db force-pushed the stack/delta_api_default branch from 7b770c7 to 8cc4ad8 Compare June 6, 2026 05:21
Signed-off-by: Yi Li <yi.li@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants