Skip to content
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

Set type constraint according to the type of original column and role classification #1059

Closed
kyungtaak opened this issue Dec 10, 2018 · 6 comments
Assignees
Labels
@datasource Component Name : Datasource/Connection Management enhancement Request Change and Feature Enhancement
Milestone

Comments

@kyungtaak
Copy link
Contributor

Is your feature request related to a problem? Please describe.
사용자가 데이터 적재시 실수를 방지하기 위하여 Role 구분/원본 데이터의 타입에 따른 타입 지정 제약이 필요합니다.

Describe the solution you'd like
Role 구분에 따른 타입 지정 제약

  • Timestamp Role
    -- Date/Time Type 외 Select box를 비활성화 및 가이드 문구를 노출
    image

  • Dimension Role
    -- 기본적으로 String, Boolean, Latitude, Longitude, Date/Time 로 변경가능
    -- 원본이 data type 이 String 인 경우 Geo related type (GEO_POINT, GEO_LINE, GEO_POLYGON) 으로 변경 가능, WKT(https://en.wikipedia.org/wiki/Well-known_text) 케이스
    -- (+) 로 지정된 GEO_POINT 타입의 경우 타 타입으로 변경이 불가, Expression 으로 지정된 컬럼의 경우, 기본값을 String 으로 지정

  • Measure Role
    -- Integer, Decimal만 허용 (숫자연산이 가능한 값). String 등의 타입으로 변경 가능하나 변경시 role이 Dimension으로 자동 변경

Describe alternatives you've considered
(N/A)

Additional context
Add any other context or screenshots about the feature request here.
(N/A)

@kyungtaak kyungtaak added enhancement Request Change and Feature Enhancement @datasource Component Name : Datasource/Connection Management labels Dec 10, 2018
@kyungtaak kyungtaak added this to the 3.2.0 milestone Dec 10, 2018
@deidera08
Copy link

@kyungtaak
질문이 있습니다.

  1. Create datasource > Configure schema화면 진입시
    데이터값에 따른 role과 type을 자동으로 판단하여 기본적으로 적용될 수 있는지요?

  2. Geo Expression인 경우 컬럼타입이 String이 되면 해당 컬럼은 Datasource > Column Detail에서 String이 되어야할까요?
    (즉 Create datasource 완료 이후 UI에서는 Expression 타입이 없는건가요?)

@brandon-wonjune
Copy link
Contributor

f#1059-set_type_constraint_in_datasource_config 브랜치 생성하였습니다

@brandon-wonjune
Copy link
Contributor

brandon-wonjune commented Dec 11, 2018

@kyungtaak 작업중 문의드립니다.
원본 타입이 string이라는 것은 필드의 속성중 type이 STRING인 것을 의미하는것인가요?

-- 원본이 data type 이 String 인 경우 Geo related type (GEO_POINT, GEO_LINE, GEO_POLYGON) 으로 변경 가능

이 부분에서 변경된 GEO 타입에 대해서도 좌표계 항목이 나타나야되나요?

@kyungtaak
Copy link
Contributor Author

@brandon-wonjune 네 맞습니다. GEO 데이터를 표현하는 WKT 타입은 STRING 으로 되어 있어요.

@brandon-wonjune
Copy link
Contributor

@kyungtaak @deidera08
위 내용적용하였습니다.

  1. 원본의 type이 STRING인 경우
    logicalType에서 GEO 타입이 선택이 가능
    2018-12-19 1 13 42
    2018-12-19 1 13 50

  2. 타임스탬프로 지정된 컬럼의 경우 아래와 같은 문구가 표시
    2018-12-19 1 13 15
    2018-12-19 1 13 56

  3. add column을 통해 생성된 GEO타입과 표현식의 경우 아래와 같은 가이드 문구 표시
    2018-12-19 1 13 26
    2018-12-19 1 13 59

brandon-wonjune added a commit that referenced this issue Dec 20, 2018
alchan-lee pushed a commit that referenced this issue Jan 14, 2019
* #1059 add type constraint in schema component

* #1059 if derived field, checkbox disable

* #1202 if derived field, add checkbox disable guide tooltip

* #1202 change tooltip message
@alchan-lee
Copy link
Contributor

fixed in #1240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@datasource Component Name : Datasource/Connection Management enhancement Request Change and Feature Enhancement
Projects
None yet
Development

No branches or pull requests

4 participants