Skip to content

[US_Urban_Schools_Teachers_And_Staff] Modified run.sh script to downlaod complete data - #2163

Open
Krishnam24maheshwari wants to merge 7 commits into
datacommonsorg:masterfrom
Krishnam24maheshwari:teachers
Open

[US_Urban_Schools_Teachers_And_Staff] Modified run.sh script to downlaod complete data#2163
Krishnam24maheshwari wants to merge 7 commits into
datacommonsorg:masterfrom
Krishnam24maheshwari:teachers

Conversation

@Krishnam24maheshwari

@Krishnam24maheshwari Krishnam24maheshwari commented Aug 18, 2026

Copy link
Copy Markdown

In this PR import has intermittent failures caused due to non-deterministic file discovery and improper handling of CLI flags in run.sh.
Issues :
1. Identified unquoted variables and lack of comma-delimiting caused only partial data processing.
2. Issue caused by "find" keyword that would output 2018_Teachers.csv, 2021_Teachers.csv, or 2022_Teachers.csv first due to which there is irregular deletions happening during different runs.

The issue was resolved by forcing deterministic file sorting, implementing comma-separated lists, and quoting input arguments -
1.Added sort and paste -sd : Guarantees deterministic alphabetical order and formats files as a proper comma-separated string (.../2018.csv,.../2021.csv,.../2022.csv).
2. Quoted all --input_data arguments: Ensured Bash does not perform word-splitting.
3. Comma-delimited legacy XLSX files : Ensured 2010, 2012, and 2014 files are all passed together to --input_data.

@google-cla

google-cla Bot commented Aug 18, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the run.sh script to use comma-separated file lists instead of space-separated ones for the --input_data argument. It also quotes the variables referencing these lists to prevent word splitting issues. There are no review comments, so I have no additional feedback to provide.

@Krishnam24maheshwari Krishnam24maheshwari changed the title Modified run.sh script to downlaod complete data [US_Urban_Schools_Teachers_And_Staff] Modified run.sh script to downlaod complete data Aug 19, 2026
Comment thread statvar_imports/us_urban_school/teachers/run.sh

@Krishnam24maheshwari Krishnam24maheshwari left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Added goldens

Comment thread statvar_imports/us_urban_school/teachers/validation_config.json Outdated
Comment thread statvar_imports/us_urban_school/teachers/run.sh Outdated
Comment thread statvar_imports/us_urban_school/teachers/manifest.json
Comment thread statvar_imports/us_urban_school/teachers/golden_data/golden_observations_2016.csv Outdated
Comment thread statvar_imports/us_urban_school/teachers/golden_data/golden_summary_2010_2014.csv Outdated
Comment thread statvar_imports/us_urban_school/teachers/validation_config.json

@Krishnam24maheshwari Krishnam24maheshwari left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Made all changes

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.

2 participants