Skip to content

Commit

Permalink
fix(session): fix PROMPT_SQL unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Jul 3, 2024
1 parent e362561 commit 470e6c8
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions cli/tests/http/05-stream.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
#!/bin/bash
## uncomment these when QUERY_DATABEND_ENTERPRISE_LICENSE env is set

cat <<SQL | ${BENDSQL}
CREATE DATABASE IF NOT EXISTS stream_test;
# cat <<SQL | ${BENDSQL}
# CREATE DATABASE IF NOT EXISTS stream_test;

CREATE OR REPLACE TABLE stream_test.abc
(
title VARCHAR,
author VARCHAR,
date VARCHAR
);
# CREATE OR REPLACE TABLE stream_test.abc
# (
# title VARCHAR,
# author VARCHAR,
# date VARCHAR
# );

CREATE OR REPLACE STREAM stream_test.s on table stream_test.abc;
SQL
# CREATE OR REPLACE STREAM stream_test.s on table stream_test.abc;
# SQL

cat <<SQL | ${BENDSQL} -D stream_test
DROP TABLE abc
SQL
# cat <<SQL | ${BENDSQL} -D stream_test
# DROP TABLE abc
# SQL

cat <<SQL | ${BENDSQL} -D stream_test
select 1;
Expand Down

0 comments on commit 470e6c8

Please sign in to comment.