fix: correct SDP streaming SQL TVF syntax for Kafka, Kinesis, and Event Hub#320
Open
sienkiewiczPat wants to merge 1 commit intodatabricks-solutions:mainfrom
Conversation
…nt Hub
- Replace invalid read_stream() with read_kafka() and read_kinesis() TVFs
- Fix parameter names: bootstrapServers, initialPosition, streamName
- Fix secret syntax: {{secrets/...}} → secret('scope', 'key')
- Backtick-quote dot-notation Kafka options (kafka.security.protocol, etc.)
- Add serviceCredential auth option for managed Kafka
- Add Kinesis IAM role and env-var auth patterns
- Replace read_stream(format=>'eventhubs') with read_kafka() + SASL/SSL JAAS config
- Add pipelines.reset.allowed config key to 7-advanced-configuration.md
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
read_stream()TVF with correctread_kafka()andread_kinesis()—read_streamdoes not exist in SDP SQL and was confirmed broken in a real pipeline runread_kafkaparameter names (bootstrapServers, backtick-quoted dot-options like`kafka.security.protocol`)read_kinesisparameter names (streamName,initialPosition) and add all three auth patterns: explicit credentials, IAM role, and environment variablesread_stream(format=>'eventhubs')withread_kafka()+ SASL/SSL JAAS config (noread_eventhubTVF exists; Event Hub uses Kafka-compatible endpoint){{secrets/scope/key}}template is not valid in SDP SQL — replaced withsecret('scope', 'key')functionserviceCredentialauth option for managed Kafka clusterspipelines.reset.allowedconfig key to7-advanced-configuration.mdTest plan
read_kafka()example runs against a real Kafka/Event Hub source in a pipelinesecret('scope', 'key')resolves correctly in SQL TVF arguments🤖 Generated with Claude Code