Граф коммитов

225 Коммитов

Автор SHA1 Сообщение Дата
Ramachandran A G 2a678ad53b *Update Synapse version 2023-10-31 15:09:32 +05:30
Ramachandran A G 41fbc558b5 *Update POM to use the new repo 2023-10-31 13:40:18 +05:30
Ramachandran A G 4b94765897 *Update pom 2023-10-31 11:33:00 +05:30
Ramachandran A G 522a9e334f *Update FabricHosts in the release 2023-10-31 11:26:22 +05:30
AsafMah 4beb557dd1
Upgrade to 3.2.1 2022-11-27 09:20:29 +02:00
AsafMah fc4421a905
Upgrade apache.common.text (#277)
(cherry picked from commit 847898d096)
2022-11-27 09:14:23 +02:00
Yihezkel Schoenbrun cd8ff13b8f
Upgrade to v3.2.0 for release (#273) 2022-10-09 14:47:24 +03:00
AsafMah e2059e7578
Automatic conversion of query/ingestion urls in ingest clients (#268) 2022-09-13 09:56:54 +03:00
ronmonetaMicro cf21875070
Added ignorefirstrecord feature (#271)
Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-09-01 14:18:30 +03:00
Yihezkel Schoenbrun a48bb62861
Support tables with special characters .-_ (#269)
* Support tables with special characters .-_

* Align normalizeEntityName with its C# equivalent
2022-08-31 15:39:21 +03:00
Yihezkel Schoenbrun 863e6d5e48
Fix MSAL scopes bug - we want ".default" to be appended to the URL, not to be its path's replacement. (#270) 2022-08-29 15:09:38 +03:00
ohad bitton c0fb1540af
Validate endpoint once (#267)
* validate once

* format

* validate once

* camel case

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2022-08-24 18:01:33 +03:00
AsafMah b99a30180b
Revert "Automatic conversion of query/endpoint urls"
This reverts commit 6880ed9a0f.
2022-08-18 12:39:57 +03:00
AsafMah 6880ed9a0f
Automatic conversion of query/endpoint urls 2022-08-18 12:39:40 +03:00
ohad bitton a66e8bef26
Verify endpoints (#263)
* start

* matcher

* clean

* matcher

* dragt

* not work

* Tests and all works well

* Tests and all works well

* clean all dirt

* fix format

* fix formatClientImpl

* databind conflict

* Formatting

* fix NPE
comments

* comment

* revert e2e

* fix NPEs !!

* format

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-08-11 15:42:33 +03:00
AsafMah 7123456464
Added keep alive header (#266) 2022-08-10 15:39:01 +03:00
AsafMah dc48ab9f37
Sample app - ignore unknown fields + enum case insensitive (#265) 2022-08-10 14:15:59 +03:00
ag-ramachandran 817fc382fe
* Update README with new maven version to use (#262)
* * Update README with new maven version to use
* Credentials provider is not supported in the new revision. Removed the reference

* * Add maven version badge instead of hardcoding the version

* * Add maven version so that it is easy to integrate into POM

* * Add maven version so that it is easy to integrate into POM

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-08-08 17:32:50 +03:00
ronmonetaMicro f9c0ce774a
T ronmoneta/java sample app (#261)
* Basic Setup

* Utils

* Encompassing enums, configuration classes,and loadconfigs

* Preingestionquerying

* Ingestion

* Post Ingestion querying and pom fix. Done.

* Maven formatting

* PR FIXES

* PR FIXES

* Trigger Build

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-08-08 11:02:07 +03:00
ohad bitton 83fbf16e14
3.1.3 2022-07-11 15:48:52 +03:00
ohad bitton 1bfd98ae4c
3.1.3 2022-07-11 15:47:29 +03:00
AsafMah d24ea97a48
Formatting throws like jetbrains (#259)
* format

* merge

* merge

* More files
2022-07-11 15:33:44 +03:00
ohad bitton 461086f2cc
QueueRequestOptions setter (#258)
* QueueRequestOptions setter

* fix build

* fix build

* fix build

* fix build?

* format

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-07-11 14:53:56 +03:00
Yihezkel Schoenbrun 9393b7dac1
Improve wrong endpoint detection (#255)
* Improve wrong endpoint detection:
- Improve exception handling: if retrieveServiceType() can't determine the endpoint's ServiceType, it shouldn't throw an (uncaught, no less) exception but instead should return null
- Improve message to be clearer and more actionable for the user
- Log warnings instead of errors if we can't suggest the right URL

* Black!

* Black!

* Per code review

* Black!

* Fix black

* Fix black

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-07-04 12:41:04 +03:00
Yihezkel Schoenbrun e03932ceb7
Black: Roll back requiring there be no newline after a field's annotation (#256)
* Black: Propose rolling back requiring there be no newline after a field's annotation. Alternatively, I propose requiring that there *be* a newline after a field's annotation.

As discussed previously, my perspective is that if one code style isn't clearly better than alternatives, the best approach is to let the devs decide. We don't need all aspects of code style to be 100% conforming in all ways, and taking away freedom unnecessarily from devs makes devs sad.

* Fix black

* Fix black

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-07-03 15:42:13 +03:00
Adrien Bestel b15c0d331e
Fix localhost handling (#253)
[This PR](https://github.com/Azure/azure-kusto-java/pull/185/) added support for localhost in the Kusto client. This is extremely useful to mock ADX using Wiremock for example.

There seems to be one last issue however in `com.microsoft.azure.kusto.data.Utils.parseUriFromUrlString`. A typical input `url` would be `http://localhost:[port]/v2/rest/query`; however, when parsed, the `cleanUrl` host is `localhost` and not `http://localhost`.

The fix in this PR is to use the exact same logic as the ClientImpl constructor which is:

```java
aadAuthenticationHelper = clusterUrl.toLowerCase().startsWith(CloudInfo.LOCALHOST) ? null : TokenProviderFactory.createTokenProvider(csb, httpClient);
```

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-06-29 13:50:37 +03:00
Yihezkel Schoenbrun 705bc7d191
Send sourceMessageCreationTime, which can help troubleshoot delays (#254)
* Sending sourceMessageCreationTime would help with troubleshooting delays, which is why it's already included in the C# SDK

* Black!
2022-06-29 08:41:17 +03:00
ohad bitton 0c0848bcdf
try fix ResourceManager test (#252)
Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2022-06-20 22:21:03 +03:00
ohad bitton 7e62bf7346
Serializeable crp (#250)
* serializeable crp

* Update pom.xml

Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2022-06-20 15:46:23 +03:00
AsafMah 731eb03ff0
Create codeql-analysis.yml 2022-06-09 11:04:46 +03:00
AsafMah 96060158ca
Use HTTP client properties for cloud info and ingestion (#244)
* CloudInfoHttp - first attempt

* Fixed firstPartyUrl and enabled new http client

* -Fixed test
-Added http client options to ingest clients

* Formatting

* Added comments and minor refactorings

* Fixed method

* Transfer httpclient in the provider ctor

* Change http client ctor to accept system

* Added proxy props

* Fixed NREs

* Added proxy and props support to missing locations

* Update README.md

* Remove auth until next storage version

* format

* Fixed missing exception

* appendIfMissing
2022-06-07 13:57:15 +03:00
AsafMah 5a200c7f8a
Change default authority to "organizations" (#248) 2022-06-06 16:09:33 +03:00
AsafMah cc67280746
Bump to 3.1.1 2022-05-29 13:23:10 +03:00
breriksenms 5da90ad381
Documentation (#245)
* Add advanced query sample

* Fix readme reference to Results

* Incorporate PR comments

* format

Co-authored-by: ohad bitton <32278684+ohadbitt@users.noreply.github.com>
Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-05-29 12:42:28 +03:00
AsafMah d056254952
Change http client ctor in cloud info to accept system props (#247)
* Change http client ctor to accept system

* Fixed NREs

* Update README.md

* format
2022-05-29 11:40:44 +03:00
AsafMah 7d3b5bd5b4
Fixed missing exception 2022-05-25 13:38:17 +03:00
breriksenms 2209318b6a
Update getKustoDateTime with more lenient formatter (#246)
* Update getKustoDateTime with more lenient formatter

* Convert DateTimeFormatter to static

* Add additional tests for getKustoDateTime

Co-authored-by: AsafMah <asafmahlev@microsoft.com>
2022-05-24 14:52:43 +03:00
AsafMah 15eaf2af15
Improve url parsing (#243)
* Improve url parsing

* -Don't remove path to support application insights urls
-Use StringUtils methods instead of writing by hand
-More tests

* Formatting

* Remove needless action
2022-05-16 12:18:34 +03:00
alonadam 2847786036
Add retry mechanism for potentiality throttled operations. (#237) 2022-04-06 17:03:18 +03:00
ohad bitton 0a7f304ea5
setClientVersionForTracing (#239)
Co-authored-by: Ohad Bitton <ohbitton@microsoft.com>
2022-04-05 17:46:21 +03:00
AsafMah ca04a5881a
Formatting - compact (#236)
* Revert "Add formatter plugin (#231)"

This reverts commit f23b0780ca.

* Formatting - compact
2022-03-31 09:58:33 +03:00
AsafMah de8fa19cb1
Made codecov informational only 2022-03-30 16:10:02 +03:00
AsafMah f23b0780ca
Add formatter plugin (#231)
* Added formatter plugin, right now only starting

* Put config on main file

* Updated style to match ours better.

* Added declaration.

* edit build.yml

* Update style and apply formatting

* Update style and apply formatting

* Tweaked settings again

* Replace with session because that might be the correct path.

* Try formatting

* line endings

* renormalize new lines

* csluuid

* new lines

* new lines

* Run again with clean

* fixed build.yml

* Changed style to be better

* Added some docs
2022-03-29 15:40:49 +03:00
AsafMah 6745d593ec
Fixed newlines and tabs (#234) 2022-03-27 17:03:41 +03:00
AsafMah 892b277f2c
bump quickstart version to 3.1.0 2022-03-20 08:29:47 +02:00
AsafMah 97fa3a719a
bump main version 2022-03-20 08:29:20 +02:00
AsafMah 49090cc1ec
Assure cloud info is only initialized once (#230)
* -Assure cloud info is only initialized once
-E2E - shorter timer and run after for faster tests

* Change to for loop

* Refactored TokenProvider hierarchy

* PR fixes

* Use progressive sleep to sleep on exceptions and see if we can reduce the time.

* Remove formatting

* Rename to acquireAccessTokenImpl
2022-03-16 07:09:28 +02:00
AsafMah a000d96496
Added validation policy (#229)
* Added validation policy

* -Assure cloud info is only initialized once
-E2E - shorter timer and run after for faster tests

* Revert "-Assure cloud info is only initialized once"

This reverts commit 587d43b42b.

* PR fix
2022-03-08 08:15:56 +02:00
AsafMah a27c50148a
Run github actions checks on pull requests (#227)
* Run github actions on pull requests

* Fix
2022-02-24 10:40:12 +02:00
Alexander Crow 05793dd620
Raise visibility of getTableKind (#220)
In case of multiple results - e.g.: `ClientImpl.execute("print 1; print 2")` the `KustoOperationResult.resultTables` will contain two tables with kind `WellKnownDataSet.PrimaryResult`.
While `KustoOperationResult.getPrimaryResults` will always give us the first one, in order for us to retrieve the second one (or more) we need to iterate through all the `KustoOperationResult.resultTables`, and since it contains metadata tables we need to be able to filter it by `WellKnownDataSet` - but we can't since `getTableKind` is package-private. 
Raising its visibility to public will allow us to achieve what we need.

Co-authored-by: Yihezkel Schoenbrun <yischoen@microsoft.com>
2022-02-23 19:32:55 +02:00