Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not seeing session variables #547

Open
amalagaura opened this issue Oct 19, 2022 · 0 comments
Open

Not seeing session variables #547

amalagaura opened this issue Oct 19, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@amalagaura
Copy link

Not able to use session variables
We tried adding session variables per the examples in the #544

To Reproduce

bin/julie-ops.jar  --version
4.4.1
context: context
env: dev
projects:
  - name: ksqldb-project
    ksql:
      artefacts:
        vars:
          streamname: ksqlb_stream_name_test
        streams:
          - path: ../ksqldb/test.sql
            name: ksql_test_stream
CREATE STREAM ${streamname}
(
ORGIDKEY STRUCT<ORG_ID INTEGER> KEY,
ORG_ABBR VARCHAR
)
WITH

Expected behavior
Session variables added to KSQLDB request

Screenshots

Following is log from KSQLDB

', configOverrides={}, requestProperties={}, sessionVariables={}, commandSequenceNumber=Optional.empty}, reason:  (io.confluent.ksql.rest.server.resources.KsqlResource)
io.confluent.ksql.parser.exception.ParseFailedException: Illegal argument at Line: 1, Col: 15. Source names may only contain alphanumeric values, '_' or '-'. Got: '${STREAMNAME}'
Statement: CREATE STREAM ${streamname}

Runtime (please complete the following information):
KSQLDB Version: docker.io/confluentinc/cp-ksqldb-server:7.1.0

Additional context
We are able to use variable substitutions in the KSQL-CLI without any issue

@amalagaura amalagaura added the bug Something isn't working label Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant