How to add details to description column of SLA_MISS metadata table - airflow

We have SLA_MISS table in airflow metadata which will be populated to track the SLA_MISS information of task. Documentation for the same are present at https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/slamiss/index.html
However there is no information as to how we can populate custom data in description column and blank values are there for all the rows. Even the notification_sent column is being marked as true for all the rows unsure of where exactly its being notified.
Please suggest possibility of adding custom data to description column and notification sent data interpretation

Related

How to fetch certain column data from datasource?

I want to fetch the specified column from a data source(i.e. exclude certain columns) because even I don't show the data in UI, the data is loaded. (it is visible from Network tabs in Browser DevTools).
So far, I found the automatic data load and query builder/ query script provide the filters and sorting of the data but loads all the columns.
I have tried record owner security and role based security but this will make the data inaccessible to some users.
You can try creating a Calculated SQL Model to limit columns being pulled.
Let's take an example where you have a Student model with Name and City as the only two fields. You can add a new Calculated SQL with this SQL query and only Name column would be pulled.
SELECT Name FROM Student
Please refer to the official guide here. Feel free to comment if you want some clarification!
Hope this helps.

A few questions regarding importing a manually created data entity

I used the data entity creation wizard and selected Reqplan table as the main data source, then I manually added ReqPlanVersion, ReqPO, ReqTrans table as additional data sources and created the relationships below.
As for the data entities fields I manually dragged a subsets of fields from the three manually added tables.
However when I try to import the data and add file, I receive the following issue:
Q1. In the past for some other entities I have changed ‘Allow Edit on Create’ from ‘Auto’ to ‘YES’ on these fields and it has worked but I am not sure if it’s the only way or is it following best practice? Also what is the determining factor for a field to be editable or not during import since they are all on AUTO?
When I try to map source to staging manually by drawing the mapping lines I get below issue:
Q2. What is going on with the configuration key? Is it because I manually dragged the fields from the additional data sources but not using the data entity creation wizard?
Lastly I been getting below issue:
Q3: Is there a way to find out which unique key it is referring to? Is it talking about the EntityKey in my Data Entity or Indexes in staging table? In either case there are more than one so I am not sure what it is referring to?
Thanks in advance.
Response from the community forum:
1) Check allowEdit property on table itself, so if it is "No" there then auto means "No". If you want to update them through data entity you will have to force them to "Yes"
2) It's not connected to manual addition, it just says that tables used in the entity has configuration key disabled, so you cannot export or import data into them, however, these tables could be added by wizard or manually, it does not matter. Also, Configuration key could be on fields as well or on EDT that these fields use, check them as well.
3) Entity has Key node and there and there you have key generated by wizard for you. It is used by framework to understand if record should be updated or created, if it does not work for you, change it on the data entity and regenerate staging. You need to refresh staging because error you get is SQL error, at this stage SSIS transfers data from a file into a staging table and data could not be copied because of index vialotion, so check staging table index and see if your file has any duplicates.

Columntype of a column in a view

Is there any way to find the column type of the columns in a view. For example for tables we can fire
select Columntype from dbc.tables where tablename=:name and databasename=:name;
But for views the above query always returns null value.
This is the only way to get detailed metadata for views columns:
help column databasename.tablename.*;
From the documentation: https://docs.teradata.com/r/Teradata-VantageTM-Database-Administration/March-2019/Working-with-Tables-and-Views-Application-DBAs/Working-with-Views/Obtaining-Information-about-View-Columns
The DBC.ColumnsV[X] views provide complete information for table columns but provide only limited information for view columns. For view columns, DBC.ColumnsV[X] provides a NULL value for ColumnType, DecimalTotalDigits, DecimalFractionalDigits, CharType, ColumnLength, and other attributes related to data type.
To obtain complete information about view columns, issue a SELECT request on either DBC.ColumnsQV[X] or DBC.ColumnJQV[X]. A SELECT request on DBC.ColumnsQV[X] or DBC.ColumnsJQV[X] can also be joined with other views and tables.
DBC.ColumnsQV[X] provides the same information as DBC.ColumnsV[X] for all database objects. DBC.ColumnsQV[X] additionally provides complete information for view columns.
DBC.ColumnsJQV[X] provides the same information as DBC.ColumnsV[X] for tables, NoPI tables, and views, and DBC.ColumnsJQV[X] additionally provides complete information for view columns. DBC.ColumnsJQV[X] does not provide information for database objects other than tables, NoPI tables, and views. The filter improves performance for requests that return information about tables and views only.

Search Operation in table view javafx

In my application i added all data into table view. Then I need entire row by using search operation.
Searching is based upon any data like search by RegisterNo or search by Name. By entering RegisterNo it Should display entire row related to RegisterNo.
To do search operation in a TableView, what I've done is to add a notion of filters.
For example if you want to filter by name, each time your name query change, you filter all your data and let on the table only those who match your query.
You always keep the full data to execute your query on it, but to display it use an other list.
with that I'm able to have lot of filters at the same moment and my view refresh in real time

asp.net grid view save checked rows to datatable (paging is already done)

I implemented paging for one of my GridViews. Now I want that all checked boxes(which are kept in first column of GridView) to be inserted to Database. How can I achieve this? Please let me know.
I want to know how can I save the checked rows to the data table, and then re-bind to this temporary data table to grid view
If some body navigate back and uncheck check box for the row then how can i remove it again from the temporary datatable
Using a gridview and DataAdapters you can achieve this. Read more about updating data with DataAdapters here. To quote Microsoft on the use of DataAdapters:
You can use a data adapter to perform
the following operations:
Retrieve rows from a data store into
corresponding data tables within the
dataset.
To retrieve rows into a dataset, use
the Fill method on a data adapter
object (SqlDataAdapter,
OleDbDataAdapter, OdbcDataAdapter, or
OracleDataAdapter). When you invoke
the Fill method, it transmits an SQL
SELECT statement to the data store.
Transmit changes made to a dataset
table to the corresponding data store.
To transmit a dataset table of the
dataset to the data store, use the
adapter's Update method. When you
invoke the method, it executes
whatever SQL INSERT, UPDATE or DELETE
statements are needed, depending on
whether the affected record is new,
changed, or deleted.

Resources