-
Notifications
You must be signed in to change notification settings - Fork 19
Issue 6284: Add tables without using templates #6360
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
base: develop
Are you sure you want to change the base?
Conversation
| InstanceProperties instanceProperties = S3InstanceProperties.loadGivenInstanceId(s3Client, instanceId); | ||
| TableProperties tableProperties = new TableProperties(instanceProperties, loadProperties(tablePropertiesFile)); | ||
| TableProperties tableProperties = LoadLocalProperties.loadTableFromPropertiesFileNoValidation(instanceProperties, tablePropertiesFile).properties(); | ||
| tableProperties.setSchema(Schema.load(schemaFile)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is overriding the schema read from the local folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed
| sed \ | ||
| -e "s|^sleeper.table.name=.*|sleeper.table.name=${TABLE_NAME}|" \ | ||
| "${TEMPLATE_DIR}/tableproperties.template" \ | ||
| > "${TABLE_PROPERTIES}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is forcing you to use the "generated" folder, which is internal to Sleeper. There could be files there already, which it shouldn't be necessary to overwrite. If you put your files in there, they would be overwritten by other scripts. You should be able to pass in whatever files you want, wherever you've put them.
| sed \ | ||
| -e "s|^sleeper.table.name=.*|sleeper.table.name=${TABLE_NAME}|" \ | ||
| "${TEMPLATE_DIR}/tableproperties.template" \ | ||
| > "${TABLE_PROPERTIES}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation needs updating based on the changes to this script.
| sed \ | ||
| -e "s|^sleeper.table.name=.*|sleeper.table.name=${TABLE_NAME}|" \ | ||
| "${TEMPLATE_DIR}/tableproperties.template" \ | ||
| > "${TABLE_PROPERTIES}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue suggested we could keep the existing behaviour of using the template files as the defaults. This has deleted that behaviour, so it's no longer possible to add a table without manually creating the configuration files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed
Make sure you have checked all steps below.
Issue
Feature". Note that before an issue is finished, you can still make a pull request by raising a separate issue
for your progress.
Tests
Documentation
separate issue for that below.