-
Notifications
You must be signed in to change notification settings - Fork 1
[DEV-12163] - Office Loader #14
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: qat
Are you sure you want to change the base?
Changes from all commits
d36739e
e961c5e
9b152ab
373db79
6d7e45a
c1a2d84
4a19cd1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -163,6 +163,10 @@ def AWS_SSM_ENDPOINT(self): | |
| DB1_URL: SecretStr = SecretStr("") | ||
| DB2_URL: SecretStr = SecretStr("") | ||
|
|
||
| # sam.gov | ||
| SAM_OFFICE_URL: str = "" | ||
| SAM_API_KEY: SecretStr = SecretStr("") | ||
|
|
||
| @property | ||
| def JDBC_DB1_URL(self): | ||
| return get_jdbc_url_from_pg_uri(self.DB1_URL.get_secret_value()) if self.DB1_URL else "" | ||
|
|
@@ -179,11 +183,11 @@ def JDBC_METASTORE_URL(self): | |
| return get_jdbc_url_from_pg_uri(self.METASTORE_URL.get_secret_value()) if self.METASTORE_URL else "" | ||
|
|
||
| # Spark | ||
| JAVA_VERSION: str = "" | ||
| SPARK_VERSION: str = "" | ||
| HADOOP_VERSION: str = "" | ||
| SCALA_VERSION: str = "" | ||
| DELTA_VERSION: str = "" | ||
| JAVA_VERSION: str = "1.8.0" | ||
| SPARK_VERSION: str = "3.4.1" | ||
| HADOOP_VERSION: str = "3.3.4" | ||
| SCALA_VERSION: str = "2.12" | ||
| DELTA_VERSION: str = "2.4.0" | ||
|
Comment on lines
+186
to
+190
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm fine with setting these here to set what's expected (matches |
||
|
|
||
| SPARK_MASTER_HOST: str = "spark-master" | ||
| SPARK_MASTER_PORT: int = 7077 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -272,3 +272,67 @@ class ProgramActivityParkGold(CSVModel): | |
| SchemaField("park_name", SchemaType.STRING, False), | ||
| ] | ||
| ) | ||
|
|
||
|
|
||
| class OfficeBronze(CSVModel): | ||
| BUCKET_NAME = CONFIG.LAKEHOUSE_REFERENCE_BUCKET | ||
| DATABASE_NAME = LakeHouseDatabase.BRONZE | ||
| TABLE_NAME = "office" | ||
| DESCRIPTION = "Raw office data" | ||
| CSV_NAME = "office.csv" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To reduce any confusion with both files being named |
||
| PK = "fhorgid" | ||
| STRUCTURE = BaseSchema( | ||
| [ | ||
| SchemaField("fhorgid", SchemaType.INTEGER, False), | ||
| SchemaField("fhorgname", SchemaType.STRING, True), | ||
| SchemaField("fhorgtype", SchemaType.STRING, True), | ||
| SchemaField("description", SchemaType.STRING, True), | ||
| SchemaField("level", SchemaType.INTEGER, True), | ||
| SchemaField("status", SchemaType.STRING, True), | ||
| SchemaField("region", SchemaType.STRING, True), | ||
| SchemaField("categoryid", SchemaType.STRING, True), | ||
| SchemaField("effectivestartdate", SchemaType.TIMESTAMP, True), | ||
| SchemaField("effectiveenddate", SchemaType.TIMESTAMP, True), | ||
| SchemaField("createdby", SchemaType.STRING, True), | ||
| SchemaField("createddate", SchemaType.TIMESTAMP, True), | ||
| SchemaField("updatedby", SchemaType.STRING, True), | ||
| SchemaField("lastupdateddate", SchemaType.TIMESTAMP, True), | ||
| SchemaField("fhdeptindagencyorgid", SchemaType.INTEGER, True), | ||
| SchemaField("fhagencyorgname", SchemaType.STRING, True), | ||
| SchemaField("agencycode", SchemaType.STRING, True), | ||
| SchemaField("oldfpdsofficecode", SchemaType.STRING, True), | ||
| SchemaField("aacofficecode", SchemaType.STRING, True), | ||
| SchemaField("cgaclist", SchemaType.LIST, True), | ||
| SchemaField("fhorgofficetypelist", SchemaType.LIST, True), | ||
| SchemaField("fhorgaddresslist", SchemaType.LIST, True), | ||
| SchemaField("fhorgnamehistory", SchemaType.LIST, True), | ||
| SchemaField("fhorgparenthistory", SchemaType.LIST, True), | ||
| SchemaField("links", SchemaType.LIST, True), | ||
| ] | ||
| ) | ||
|
|
||
|
|
||
| class OfficeGold(CSVModel): | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add this to |
||
| BUCKET_NAME = CONFIG.LAKEHOUSE_REFERENCE_BUCKET | ||
| DATABASE_NAME = LakeHouseDatabase.GOLD | ||
| TABLE_NAME = "office" | ||
| DESCRIPTION = "Federal Hierarchy Office Data" | ||
| CSV_NAME = "office.csv" | ||
| PK = "office_id" | ||
| STRUCTURE = BaseSchema( | ||
| [ | ||
| SchemaField("created_at", SchemaType.TIMESTAMP, True), | ||
| SchemaField("updated_at", SchemaType.TIMESTAMP, True), | ||
| SchemaField("office_id", SchemaType.INTEGER, False), | ||
| SchemaField("office_code", SchemaType.STRING, False), | ||
| SchemaField("office_name", SchemaType.STRING, True), | ||
| SchemaField("sub_tier_code", SchemaType.STRING, False), | ||
| SchemaField("agency_code", SchemaType.STRING, False), | ||
| SchemaField("effective_start_date", SchemaType.TIMESTAMP, True), | ||
| SchemaField("effective_end_date", SchemaType.TIMESTAMP, True), | ||
| SchemaField("contract_awards_office", SchemaType.BOOLEAN, False), | ||
| SchemaField("contract_funding_office", SchemaType.BOOLEAN, False), | ||
| SchemaField("financial_assistance_awards_office", SchemaType.BOOLEAN, False), | ||
| SchemaField("financial_assistance_funding_office", SchemaType.BOOLEAN, False), | ||
| ] | ||
| ) | ||
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.
Good additions. Can you
.github/.env.test)?