Skip to content

Commit

Permalink
fix tao var name
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov-aws committed Nov 7, 2024
1 parent 995f113 commit e000e08
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cid/builtin/core/data/queries/co/auto_scale.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"DatabaseName": "${athena_database_name}",
"TableInput": {
"Name": "${athenaTableName}",
"Name": "${athena_table_name}",
"StorageDescriptor": {
"Location": "${s3FolderPath}",
"Columns": [
Expand Down
2 changes: 1 addition & 1 deletion cid/builtin/core/data/queries/co/ebs_volume.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"DatabaseName": "${athena_database_name}",
"TableInput": {
"Name": "${athenaTableName}",
"Name": "${athena_table_name}",
"StorageDescriptor": {
"Location": "${s3FolderPath}",
"Columns": [
Expand Down
2 changes: 1 addition & 1 deletion cid/builtin/core/data/queries/co/ec2_instance.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"DatabaseName": "${athena_database_name}",
"TableInput": {
"Name": "${athenaTableName}",
"Name": "${athena_table_name}",
"StorageDescriptor": {
"Location": "${s3FolderPath}",
"Columns": [
Expand Down
2 changes: 1 addition & 1 deletion cid/builtin/core/data/queries/co/lambda.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"DatabaseName": "${athena_database_name}",
"TableInput": {
"Name": "${athenaTableName}",
"Name": "${athena_table_name}",
"StorageDescriptor": {
"Location": "${s3FolderPath}",
"Columns": [
Expand Down
2 changes: 1 addition & 1 deletion cid/builtin/core/data/queries/co/rds_database.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"DatabaseName": "${athena_database_name}",
"TableInput": {
"Name": "${athenaTableName}",
"Name": "${athena_table_name}",
"StorageDescriptor": {
"Location": "${s3FolderPath}",
"Columns": [
Expand Down
2 changes: 1 addition & 1 deletion cid/builtin/core/data/queries/shared/cur.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DatabaseName: "${athena_database_name}"
TableInput:
Name: "${athenaTableName}"
Name: "${athena_table_name}"
Owner: owner
Retention: 0
TableType: EXTERNAL_TABLE
Expand Down
2 changes: 1 addition & 1 deletion cid/builtin/core/data/queries/tao/glue_table.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"DatabaseName": "${athena_database_name}",
"TableInput": {
"Name": "${athenaTableName}",
"Name": "${athena_table_name}",
"StorageDescriptor": {
"Location": "${s3FolderPath}",
"Columns": [
Expand Down
1 change: 1 addition & 0 deletions cid/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1741,6 +1741,7 @@ def get_view_query(self, view_name: str) -> str:
columns_tpl = {
#'athena_datasource_arn': athena_datasource.arn,
'athena_database_name': self.athena.DatabaseName,
'athena_table_name': view_name,
'cur_database': self.cur1.database if cur1_required else None, # for backward compatibly
'cur_table_name': self.cur1.table_name if cur1_required else None, # for backward compatibly
'cur1_database': self.cur1.database if cur1_required else None,
Expand Down

0 comments on commit e000e08

Please sign in to comment.