| #!/bin/sh |
| source conf/drillTestConfig.properties |
| |
| if [ -z "$PASSWORD" ] |
| then |
| ${DRILL_HOME}/bin/sqlline -n ${USERNAME} -u "jdbc:drill:schema=dfs.$1;drillbit=${DRILL_STORAGE_PLUGIN_SERVER}" --run=${DRILL_TEST_DATA_DIR}/Datasources/metadata_caching/refresh_metadata_multilevel.ddl |
| else |
| ${DRILL_HOME}/bin/sqlline -n ${USERNAME} -p ${PASSWORD} -u "jdbc:drill:schema=dfs.$1;drillbit=${DRILL_STORAGE_PLUGIN_SERVER}" --run=${DRILL_TEST_DATA_DIR}/Datasources/metadata_caching/refresh_metadata_multilevel.ddl |
| fi |
| |
| # it seems that sqlline does not exit, if one of the queries failed. |
| if [ "$?" -eq 0 ] |
| then |
| exit 0 |
| else |
| echo "ERROR: create table script failed. Rerun create_tables_parquet.ddl to debug failures." |
| exit 1 |
| fi |