Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AmendsenProject
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shaik Janipasha
AmendsenProject
Commits
a248d404
Unverified
Commit
a248d404
authored
Feb 07, 2020
by
samshuster
Committed by
GitHub
Feb 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding UNQUOTED_SUFFIX to sort_order like what is done with other column model. (#190)
parent
d12aa936
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
standalone_column_model.py
databuilder/models/standalone_column_model.py
+4
-1
No files found.
databuilder/models/standalone_column_model.py
View file @
a248d404
...
@@ -10,12 +10,15 @@ from databuilder.models.table_metadata import TableMetadata, DESCRIPTION_NODE_LA
...
@@ -10,12 +10,15 @@ from databuilder.models.table_metadata import TableMetadata, DESCRIPTION_NODE_LA
# This class is needed to handle csv based column loading, since the main column model
# This class is needed to handle csv based column loading, since the main column model
# table_metadata.ColumnMetadata requires table_metadata.TableMetadata as well, and this cannot
# table_metadata.ColumnMetadata requires table_metadata.TableMetadata as well, and this cannot
# be represented in csv form
# be represented in csv form
from
databuilder.publisher.neo4j_csv_publisher
import
UNQUOTED_SUFFIX
class
StandaloneColumnMetadata
(
Neo4jCsvSerializable
):
class
StandaloneColumnMetadata
(
Neo4jCsvSerializable
):
COLUMN_NODE_LABEL
=
'Column'
COLUMN_NODE_LABEL
=
'Column'
COLUMN_KEY_FORMAT
=
'{db}://{cluster}.{schema}/{tbl}/{col}'
COLUMN_KEY_FORMAT
=
'{db}://{cluster}.{schema}/{tbl}/{col}'
COLUMN_NAME
=
'name'
COLUMN_NAME
=
'name'
COLUMN_TYPE
=
'type'
COLUMN_TYPE
=
'type'
COLUMN_ORDER
=
'sort_order
'
COLUMN_ORDER
=
'sort_order
{}'
.
format
(
UNQUOTED_SUFFIX
)
# int value needs to be unquoted when publish to neo4j
COLUMN_DESCRIPTION
=
'description'
COLUMN_DESCRIPTION
=
'description'
COLUMN_DESCRIPTION_FORMAT
=
'{db}://{cluster}.{schema}/{tbl}/{col}/_description'
COLUMN_DESCRIPTION_FORMAT
=
'{db}://{cluster}.{schema}/{tbl}/{col}/_description'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment