Skip to content

iotdb-client-go github actions#6

Merged
jixuan1989 merged 32 commits intoapache:mainfrom
manlge:main
Jan 5, 2021
Merged

iotdb-client-go github actions#6
jixuan1989 merged 32 commits intoapache:mainfrom
manlge:main

Conversation

@manlge
Copy link
Copy Markdown
Contributor

@manlge manlge commented Dec 22, 2020

manlge added 30 commits December 6, 2020 18:02
…ng functions to the utility and apply it to the DataSet
@manlge
Copy link
Copy Markdown
Contributor Author

manlge commented Dec 22, 2020

@jixuan1989 @JackieTien97 PTAL

@jixuan1989
Copy link
Copy Markdown
Member

Hi, sorry for reply late.

Why adding a method GetValueAt ?

@manlge
Copy link
Copy Markdown
Contributor Author

manlge commented Dec 30, 2020

e.g.

func validate(tablet *client.Tablet) (err error) {
	temperatureColumn := 2
	for i := 0; i < tablet.GetRowCount(); i++ {
		if v, err := tablet.GetValueAt(temperatureColumn, i); err == nil {
			temperature := v.(float32)
			if temperature > 42.5 || temperature < 35.1 {
				return errors.New("The temperature must be in [35..42]")
			}
		}
	}
	return err
}

@jixuan1989 jixuan1989 merged commit bbdd863 into apache:main Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants