Skip to content

fix: correct SDP streaming SQL TVF syntax for Kafka, Kinesis, and Event Hub#320

Open
sienkiewiczPat wants to merge 1 commit intodatabricks-solutions:mainfrom
sienkiewiczPat:fix/databricks-spark-declarative-pipelines-streaming-sql-skills
Open

fix: correct SDP streaming SQL TVF syntax for Kafka, Kinesis, and Event Hub#320
sienkiewiczPat wants to merge 1 commit intodatabricks-solutions:mainfrom
sienkiewiczPat:fix/databricks-spark-declarative-pipelines-streaming-sql-skills

Conversation

@sienkiewiczPat
Copy link

@sienkiewiczPat sienkiewiczPat commented Mar 17, 2026

Summary

  • Replace invalid read_stream() TVF with correct read_kafka() and read_kinesis()read_stream does not exist in SDP SQL and was confirmed broken in a real pipeline run
  • Fix read_kafka parameter names (bootstrapServers, backtick-quoted dot-options like `kafka.security.protocol`)
  • Fix read_kinesis parameter names (streamName, initialPosition) and add all three auth patterns: explicit credentials, IAM role, and environment variables
  • Replace read_stream(format=>'eventhubs') with read_kafka() + SASL/SSL JAAS config (no read_eventhub TVF exists; Event Hub uses Kafka-compatible endpoint)
  • Fix secret syntax: {{secrets/scope/key}} template is not valid in SDP SQL — replaced with secret('scope', 'key') function
  • Add serviceCredential auth option for managed Kafka clusters
  • Add pipelines.reset.allowed config key to 7-advanced-configuration.md

Test plan

  • Verify read_kafka() example runs against a real Kafka/Event Hub source in a pipeline
  • Confirm secret('scope', 'key') resolves correctly in SQL TVF arguments

🤖 Generated with Claude Code

…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>
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.

1 participant