kafka-alter-source.td 940 B

123456789101112131415161718192021222324252627282930
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. $ set-arg-default single-replica-cluster=quickstart
  10. # Verify commands do not work on kafka.
  11. $ kafka-create-topic topic=data partitions=1
  12. $ kafka-ingest format=bytes topic=data
  13. one
  14. > CREATE CONNECTION kafka_conn
  15. TO KAFKA (BROKER '${testdrive.kafka-addr}', SECURITY PROTOCOL PLAINTEXT);
  16. > CREATE SOURCE data
  17. IN CLUSTER ${arg.single-replica-cluster}
  18. FROM KAFKA CONNECTION kafka_conn (TOPIC 'testdrive-data-${testdrive.seed}')
  19. FORMAT TEXT;
  20. > SELECT * from data
  21. one
  22. !ALTER SOURCE data ADD SUBSOURCE t;
  23. contains:source data does not support ALTER SOURCE.