jarredhj0214 commented on code in PR #14755:
URL: https://github.com/apache/gravitino/pull/14755#discussion_r4560769618
##########
spark-connector/spark-common/src/test/java/org/apache/gravitino/spark/connector/plugin/restcatalog/TestGravitinoLakehouseRESTDiscoveryDriverPlugin.java:
##########
@@ -94,6 +100,140 @@ void testGeneratedConfigurationAndPrecedence() {
sparkConf.get(StaticSQLConf.SPARK_SESSION_EXTENSIONS().key()));
}
+ @Test
+ void testLanceReusesSparkContextUser() {
Review Comment:
Addressed in `d431e010c`. The regression tests exercise the discovery plugin
with the real Lance HTTP provider and cover mixed-case duplicate headers and
usernames containing `:`.
I also ran a local end-to-end check with Lance Spark bundle 0.5.1 on Spark
3.5.3 and 4.0.3. `SHOW NAMESPACES IN catalog_a` succeeded through the
auto-registered native catalog in both versions. With default simple auth,
discovery and catalog requests sent the Spark user's Basic header. With an
explicit per-catalog override, discovery used the global header, and catalog
initialization and queries used the override. The HTTP test server received
exactly one `Authorization` value per request.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]