Skip to content

Conversation

@rtjd6554
Copy link
Collaborator

@rtjd6554 rtjd6554 commented Jan 9, 2026

Make sure you have checked all steps below.

Issue

  • My PR fully resolves the following issues. I've referenced an issue in the PR title, for example "Issue 1234 - My
    Feature". Note that before an issue is finished, you can still make a pull request by raising a separate issue
    for your progress.

Tests

  • My PR adds the following tests based on our test strategy OR does not need testing for this extremely good reason:
    • Execution of existing test suite

Documentation

  • In case of new functionality, my PR adds documentation that describes how to use it, or I have linked to a
    separate issue for that below.
  • If I have added new Java code, I have added Javadoc that explains it following our conventions and style.
  • If I have added or removed any dependencies from the project, I have updated the NOTICES file.

@rtjd6554 rtjd6554 marked this pull request as ready for review January 12, 2026 09:00
@rtjd6554 rtjd6554 added the needs-reviewer Pull requests that need a reviewer to be assigned label Jan 12, 2026
@ca61688 ca61688 self-assigned this Jan 12, 2026
@ca61688 ca61688 removed the needs-reviewer Pull requests that need a reviewer to be assigned label Jan 12, 2026
@ca61688 ca61688 assigned rtjd6554 and unassigned ca61688 Jan 12, 2026
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));
Copy link
Collaborator

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.

Copy link
Collaborator Author

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}"
Copy link
Collaborator

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}"
Copy link
Collaborator

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}"
Copy link
Collaborator

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed

@patchwork01 patchwork01 marked this pull request as draft January 26, 2026 10:48
@rtjd6554 rtjd6554 marked this pull request as ready for review January 28, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tables without using templates

4 participants